Skip to content

Commit aa5cf15

Browse files
authored
Fix adapter-node regression (#1756)
1 parent cb9afdc commit aa5cf15

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chilled-kiwis-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function ({
4343
const files = fileURLToPath(new URL('./files', import.meta.url));
4444
utils.copy(files, '.svelte-kit/node');
4545
writeFileSync(
46-
join(files, 'env.js'),
46+
'.svelte-kit/node/env.js',
4747
`export const host = process.env[${JSON.stringify(
4848
host_env
4949
)}] || '0.0.0.0';\nexport const port = process.env[${JSON.stringify(port_env)}] || 3000;`

0 commit comments

Comments
 (0)