netlify-cli 17.27.0 → 17.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/base-command.d.ts +3 -1
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/base-command.js +25 -9
- package/dist/commands/dev/dev.d.ts.map +1 -1
- package/dist/commands/dev/dev.js +0 -1
- package/dist/commands/serve/serve.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/proxy.js +3 -3
- package/npm-shrinkwrap.json +1086 -826
- package/package.json +3 -3
package/dist/utils/proxy.js
CHANGED
|
@@ -602,9 +602,6 @@ const onRequest = async ({ addonsUrls, api, edgeFunctionsProxy, env, functionsRe
|
|
|
602
602
|
jwtRolePath: settings.jwtRolePath,
|
|
603
603
|
framework: settings.framework,
|
|
604
604
|
};
|
|
605
|
-
if (api && process.env.NETLIFY_DEV_SERVER_ID) {
|
|
606
|
-
notifyActivity(api, siteInfo.id, process.env.NETLIFY_DEV_SERVER_ID);
|
|
607
|
-
}
|
|
608
605
|
if (match) {
|
|
609
606
|
// We don't want to generate an ETag for 3xx redirects.
|
|
610
607
|
// @ts-expect-error TS(7031) FIXME: Binding element 'statusCode' implicitly has an 'an... Remove this comment to see the full error message
|
|
@@ -625,6 +622,9 @@ const onRequest = async ({ addonsUrls, api, edgeFunctionsProxy, env, functionsRe
|
|
|
625
622
|
(ct.endsWith('/x-www-form-urlencoded') || ct === 'multipart/form-data')) {
|
|
626
623
|
return proxy.web(req, res, { target: functionsServer });
|
|
627
624
|
}
|
|
625
|
+
if (req.method === 'GET' && api && process.env.NETLIFY_DEV_SERVER_ID) {
|
|
626
|
+
notifyActivity(api, siteInfo.id, process.env.NETLIFY_DEV_SERVER_ID);
|
|
627
|
+
}
|
|
628
628
|
proxy.web(req, res, options);
|
|
629
629
|
};
|
|
630
630
|
export const getProxyUrl = function (settings) {
|