@kiln-js/adapter-node 0.4.3 → 0.4.4

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23,6 +23,11 @@ import { gzipSync } from "node:zlib";
23
23
  import { pathToFileURL, fileURLToPath } from "node:url";
24
24
  import { createRequire } from "node:module";
25
25
 
26
+ // The server bundle loads React, which picks its production build from
27
+ // NODE_ENV. Force it before the first import so a bare
28
+ // \`node dist/node/server.mjs\` never runs development React.
29
+ process.env.NODE_ENV ??= "production";
30
+
26
31
  const here = path.dirname(fileURLToPath(import.meta.url));
27
32
  const clientOut = path.resolve(here, ${JSON.stringify(clientRel)});
28
33
  const require = createRequire(import.meta.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiln-js/adapter-node",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Node.js production server for the Kiln framework",
5
5
  "license": "MIT",
6
6
  "type": "module",