netlify-cli 27.14.0 → 27.14.2

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.
@@ -19,6 +19,7 @@ import { handleOptionError, isOptionError } from '../utils/command-error-handler
19
19
  import { EXIT_CODES } from '../utils/exit-codes.js';
20
20
  import { getFrameworksAPIPaths } from '../utils/frameworks-api.js';
21
21
  import { getSiteByName } from '../utils/get-site.js';
22
+ import { getLocalApiTestOpts } from '../utils/local-api-test-opts.js';
22
23
  import { buildAuthorizeUrl } from '../utils/login-url.js';
23
24
  import openBrowser from '../utils/open-browser.js';
24
25
  import { isInteractive } from '../utils/scripted-commands.js';
@@ -653,6 +654,7 @@ export default class BaseCommand extends Command {
653
654
  host: host,
654
655
  pathPrefix: pathPrefix,
655
656
  scheme: scheme,
657
+ testOpts: getLocalApiTestOpts({ host, scheme }),
656
658
  offline: offline ?? flags.offline,
657
659
  siteFeatureFlagPrefix: 'cli',
658
660
  featureFlags: this.featureFlags,
@@ -0,0 +1,8 @@
1
+ export declare const getLocalApiTestOpts: ({ host, scheme, }: {
2
+ host?: string;
3
+ scheme?: string;
4
+ }) => {
5
+ host: string;
6
+ scheme?: string;
7
+ } | undefined;
8
+ //# sourceMappingURL=local-api-test-opts.d.ts.map
@@ -0,0 +1,14 @@
1
+ const LOOPBACK_HOSTNAMES = new Set(['localhost', '127.0.0.1', '[::1]']);
2
+ export const getLocalApiTestOpts = ({ host, scheme, }) => {
3
+ if (host === undefined) {
4
+ return undefined;
5
+ }
6
+ try {
7
+ const { hostname } = new URL(`http://${host}`);
8
+ return LOOPBACK_HOSTNAMES.has(hostname) ? { host, scheme } : undefined;
9
+ }
10
+ catch {
11
+ return undefined;
12
+ }
13
+ };
14
+ //# sourceMappingURL=local-api-test-opts.js.map
@@ -693,7 +693,9 @@ export const startProxy = async function ({ accountId, aiGatewayContext, api, bl
693
693
  logger: { log, warn, error: logError },
694
694
  imagesConfig: config.images,
695
695
  });
696
- const serverEntryEnabled = process.env.EXPERIMENTAL_NETLIFY_SERVER === 'true' || Boolean(siteInfo?.feature_flags?.netlify_build_server_entry);
696
+ const serverEntryEnabled = process.env.EXPERIMENTAL_NETLIFY_SERVER === 'true' ||
697
+ Boolean(siteInfo?.feature_flags?.netlify_build_server_entry) ||
698
+ Boolean(siteInfo?.feature_flags?.netlify_build_server_standalone);
697
699
  let serverHandler;
698
700
  if (serverEntryEnabled) {
699
701
  const serverFileWatcher = new FileWatcher();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "27.14.0",
3
+ "version": "27.14.2",
4
4
  "description": "Netlify command line tool",
5
5
  "keywords": [
6
6
  "api",
@@ -54,24 +54,24 @@
54
54
  "dependencies": {
55
55
  "@fastify/static": "^10.0.0",
56
56
  "@inquirer/prompts": "^8.7.2",
57
- "@netlify/ai": "^1.0.1",
57
+ "@netlify/ai": "^1.0.2",
58
58
  "@netlify/api": "^15.1.3",
59
- "@netlify/blobs": "^11.1.3",
60
- "@netlify/build": "^37.5.0",
59
+ "@netlify/blobs": "^11.1.6",
60
+ "@netlify/build": "^37.5.1",
61
61
  "@netlify/build-info": "^11.3.0",
62
62
  "@netlify/config": "^25.3.0",
63
- "@netlify/dev": "^5.1.6",
64
- "@netlify/dev-utils": "^6.0.3",
65
- "@netlify/edge-bundler": "^16.1.2",
66
- "@netlify/edge-functions": "^4.0.2",
63
+ "@netlify/dev": "^5.1.10",
64
+ "@netlify/dev-utils": "^6.0.4",
65
+ "@netlify/edge-bundler": "^16.1.3",
66
+ "@netlify/edge-functions": "^4.0.3",
67
67
  "@netlify/edge-functions-bootstrap": "^3.2.0",
68
68
  "@netlify/headers-parser": "^10.1.1",
69
- "@netlify/images": "^2.0.3",
69
+ "@netlify/images": "^2.0.5",
70
70
  "@netlify/local-functions-proxy": "^2.0.3",
71
71
  "@netlify/redirect-matcher": "^0.4.2",
72
72
  "@netlify/redirect-parser": "^16.1.1",
73
- "@netlify/server-dev": "^0.1.3",
74
- "@netlify/zip-it-and-ship-it": "^16.4.0",
73
+ "@netlify/server-dev": "^0.1.4",
74
+ "@netlify/zip-it-and-ship-it": "^16.4.1",
75
75
  "@opentelemetry/api": "~1.9.0",
76
76
  "@pnpm/tabtab": "^0.5.4",
77
77
  "ansi-escapes": "^7.3.0",
@@ -152,8 +152,8 @@
152
152
  "@bugsnag/js": "^8.6.0",
153
153
  "@eslint/compat": "^1.4.1",
154
154
  "@eslint/js": "^9.36.0",
155
- "@netlify/functions": "^6.0.2",
156
- "@netlify/types": "^3.2.0",
155
+ "@netlify/functions": "^6.0.3",
156
+ "@netlify/types": "^3.3.0",
157
157
  "@sindresorhus/slugify": "^3.0.0",
158
158
  "@tsconfig/node22": "22.0.5",
159
159
  "@tsconfig/recommended": "^1.0.13",