We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb9afdc commit aa5cf15Copy full SHA for aa5cf15
.changeset/chilled-kiwis-drop.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/adapter-node': patch
3
4
+
5
+Fix regression caused by writing `env.js` to the wrong path
packages/adapter-node/index.js
@@ -43,7 +43,7 @@ export default function ({
43
const files = fileURLToPath(new URL('./files', import.meta.url));
44
utils.copy(files, '.svelte-kit/node');
45
writeFileSync(
46
- join(files, 'env.js'),
+ '.svelte-kit/node/env.js',
47
`export const host = process.env[${JSON.stringify(
48
host_env
49
)}] || '0.0.0.0';\nexport const port = process.env[${JSON.stringify(port_env)}] || 3000;`
0 commit comments