Skip to content

Commit

Permalink
updated endpoint to match production value
Browse files Browse the repository at this point in the history
  • Loading branch information
miketalley committed Apr 28, 2021
1 parent 355839b commit 5a0a68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/serverless-dev-runtime/lib/data.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs-extra');
const { logger } = require('@hubspot/cli-lib/logger');
const { getDotEnvData } = require('./secrets');
const { MOCK_DATA, MAX_SECRETS } = require('./constants');
const { MOCK_DATA, MAX_SECRETS, ROUTE_PATH_PREFIX } = require('./constants');

const getValidatedFunctionData = path => {
// Allow passing serverless folder path with and without .functions extension
Expand Down Expand Up @@ -119,7 +119,7 @@ const getFunctionDataContext = async (
body: req.body,
headers: getHeaders(req),
method: req.method,
endpoint: req.url,
endpoint: req.url.replace(`/${ROUTE_PATH_PREFIX}`, ''),
accountId: accountId || HUBSPOT_ACCOUNT_ID || MOCK_DATA.HUBSPOT_ACCOUNT_ID,
contact:
contact === 'true' || contact === true
Expand Down

0 comments on commit 5a0a68a

Please sign in to comment.