netlify-cli 17.15.6 → 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.
@@ -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;AA0BhD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA4D5C,eAAO,MAAM,GAAG,YAAmB,YAAY,WAAW,WAAW,kBA+IpE,CAAA;AAED,eAAO,MAAM,gBAAgB,YAAa,WAAW,gBAuGpD,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"}
@@ -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,