netlify-cli 8.14.0 → 8.14.1

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,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "8.14.0",
3
+ "version": "8.14.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "8.14.0",
9
+ "version": "8.14.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "8.14.0",
4
+ "version": "8.14.1",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
@@ -308,7 +308,7 @@ const dev = async (options, command) => {
308
308
  } else if (startNetlifyGraphWatcher) {
309
309
  const netlifyToken = await command.authenticate()
310
310
  await OneGraphCliClient.ensureAppForSite(netlifyToken, site.id)
311
- const netlifyGraphConfig = await getNetlifyGraphConfig({ command, options })
311
+ const netlifyGraphConfig = await getNetlifyGraphConfig({ command, options, settings })
312
312
 
313
313
  log(`Starting Netlify Graph session, to edit your library run \`netlify graph:edit\` in another tab`)
314
314
 
@@ -29,7 +29,7 @@ const filterRelativePathItems = (items) => items.filter((part) => part !== '')
29
29
  * @param {import('../base-command').BaseCommand} command
30
30
  * @return {NetlifyGraphConfig} NetlifyGraphConfig
31
31
  */
32
- const getNetlifyGraphConfig = async ({ command, options }) => {
32
+ const getNetlifyGraphConfig = async ({ command, options, settings }) => {
33
33
  const { config, site } = command.netlify
34
34
  config.dev = { ...config.dev }
35
35
  config.build = { ...config.build }
@@ -44,11 +44,12 @@ const getNetlifyGraphConfig = async ({ command, options }) => {
44
44
  }
45
45
 
46
46
  /** @type {Partial<import('../../utils/types').ServerSettings>} */
47
- let settings = {}
48
- try {
49
- settings = await detectServerSettings(devConfig, options, site.root)
50
- } catch (detectServerSettingsError) {
51
- error(detectServerSettingsError)
47
+ if (!settings) {
48
+ try {
49
+ settings = await detectServerSettings(devConfig, options, site.root)
50
+ } catch (detectServerSettingsError) {
51
+ error(detectServerSettingsError)
52
+ }
52
53
  }
53
54
 
54
55
  const siteRoot = [path.sep, ...filterRelativePathItems(site.root.split(path.sep))]