netlify-cli 17.15.5 → 17.15.7
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/dev/dev.d.ts.map +1 -1
- package/dist/commands/dev/dev.js +6 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/deploy/upload-files.d.ts.map +1 -1
- package/dist/utils/deploy/upload-files.js +6 -1
- package/dist/utils/headers.d.ts +2 -1
- package/dist/utils/headers.d.ts.map +1 -1
- package/dist/utils/headers.js +2 -1
- package/dist/utils/proxy.d.ts.map +1 -1
- package/dist/utils/proxy.js +23 -4
- package/dist/utils/redirects.d.ts +2 -1
- package/dist/utils/redirects.d.ts.map +1 -1
- package/dist/utils/redirects.js +2 -2
- package/dist/utils/rules-proxy.d.ts +2 -1
- package/dist/utils/rules-proxy.d.ts.map +1 -1
- package/dist/utils/rules-proxy.js +4 -2
- package/dist/utils/run-build.d.ts +15 -0
- package/dist/utils/run-build.d.ts.map +1 -1
- package/dist/utils/run-build.js +2 -2
- package/npm-shrinkwrap.json +61 -61
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/dev.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAU,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/dev.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAU,MAAM,WAAW,CAAA;AA4BhD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA4D5C,eAAO,MAAM,GAAG,YAAmB,YAAY,WAAW,WAAW,kBAiJpE,CAAA;AAED,eAAO,MAAM,gBAAgB,YAAa,WAAW,gBAuGpD,CAAA"}
|
package/dist/commands/dev/dev.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import process from 'process';
|
|
2
2
|
import { Option } from 'commander';
|
|
3
|
+
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module '@net... Remove this comment to see the full error message
|
|
4
|
+
import { applyMutations } from '@netlify/config';
|
|
3
5
|
import { BLOBS_CONTEXT_VARIABLE, encodeBlobsContext, getBlobsContext } from '../../lib/blobs/blobs.js';
|
|
4
6
|
import { promptEditorHelper } from '../../lib/edge-functions/editor-helper.js';
|
|
5
7
|
import { startFunctionsServer } from '../../lib/functions/server.js';
|
|
@@ -114,7 +116,7 @@ export const dev = async (options, command) => {
|
|
|
114
116
|
process.env.URL = url;
|
|
115
117
|
process.env.DEPLOY_URL = url;
|
|
116
118
|
log(`${NETLIFYDEVWARN} Setting up local development server`);
|
|
117
|
-
const { configPath: configPathOverride } = await runDevTimeline({
|
|
119
|
+
const { configMutations, configPath: configPathOverride } = await runDevTimeline({
|
|
118
120
|
command,
|
|
119
121
|
options,
|
|
120
122
|
settings,
|
|
@@ -123,10 +125,11 @@ export const dev = async (options, command) => {
|
|
|
123
125
|
DEPLOY_URL: url,
|
|
124
126
|
},
|
|
125
127
|
});
|
|
128
|
+
const mutatedConfig = applyMutations(config, configMutations);
|
|
126
129
|
const functionsRegistry = await startFunctionsServer({
|
|
127
130
|
blobsContext,
|
|
128
131
|
command,
|
|
129
|
-
config,
|
|
132
|
+
config: mutatedConfig,
|
|
130
133
|
debug: options.debug,
|
|
131
134
|
settings,
|
|
132
135
|
site,
|
|
@@ -161,7 +164,7 @@ export const dev = async (options, command) => {
|
|
|
161
164
|
await startProxyServer({
|
|
162
165
|
addonsUrls,
|
|
163
166
|
blobsContext,
|
|
164
|
-
config,
|
|
167
|
+
config: mutatedConfig,
|
|
165
168
|
configPath: configPathOverride,
|
|
166
169
|
debug: options.debug,
|
|
167
170
|
projectDir: command.workingDir,
|