Fix adapter-node regression
ADD
.changeset/chilled-kiwis-drop.md
+---
+'@sveltejs/adapter-node': patch
+---
+
+Fix regression caused by writing `env.js` to the wrong path

MODIFY
packages/adapter-node/index.js
packages/adapter-node/index.js
@@ -43,7 +43,7 @@ export default function ({
const files = fileURLToPath(new URL('./files', import.meta.url));
utils.copy(files, '.svelte-kit/node');
writeFileSync(
- join(files, 'env.js'),
+ '.svelte-kit/node/env.js',
`export const host = process.env[${JSON.stringify(
host_env
)}] || '0.0.0.0';\nexport const port = process.env[${JSON.stringify(port_env)}] || 3000;`

Fix adapter-node regression (#1756)