@forgecart/cli 2.202607150804.0 → 2.202607190047.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/package.json
CHANGED
|
@@ -6,14 +6,21 @@ const nextConfig = {
|
|
|
6
6
|
reactStrictMode: true,
|
|
7
7
|
// The visual-editor preview runs THIS dev server inside a workspace pod and is
|
|
8
8
|
// reached cross-origin through the channel's preview ingress host
|
|
9
|
-
// (`<code>.127.0.0.1.nip.io:8081`
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// localhost
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
|
|
9
|
+
// (`<code>.127.0.0.1.nip.io:8081` on a bare host; `<code>-<vm>.vm.forgecart.com`
|
|
10
|
+
// through the Cloudflare tunnel of a `pnpm vm` environment; `<code>.dev|test
|
|
11
|
+
// .forgecart.dev` and `<code>.forgecart.dev` deployed) — never the pod's own
|
|
12
|
+
// `localhost:3000`. Next 16 ENFORCES `allowedDevOrigins`: a dev request whose
|
|
13
|
+
// host is not localhost/127.0.0.1 and not listed here is blocked, which
|
|
14
|
+
// silently kills the `/_next` HMR websocket (and the dashboard iframe's dev
|
|
15
|
+
// channel) with no page error. The `*` wildcard matches across dots, so
|
|
16
|
+
// `*.forgecart.dev` covers every env's preview subdomain. Dev-only —
|
|
17
|
+
// `next start` (deployed storefronts) ignores it.
|
|
18
|
+
allowedDevOrigins: [
|
|
19
|
+
'*.127.0.0.1.nip.io',
|
|
20
|
+
'*.vm.forgecart.com',
|
|
21
|
+
'*.dev.forgecart.dev',
|
|
22
|
+
'*.forgecart.dev',
|
|
23
|
+
],
|
|
17
24
|
experimental: {
|
|
18
25
|
// Persist Turbopack's dev compile artifacts to `.next` so a pod can serve
|
|
19
26
|
// a PRE-WARMED `.next` baked at build time instead of paying a cold first
|