Skip to content

Commit

Permalink
feat: require SvelteKit 2 and Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrich committed Jan 1, 2024
1 parent 3b51009 commit c77c842
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 494 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
}
},
platform: {
apiRuntime: 'node:18'
apiRuntime: 'node:20'
}
}
})
Expand Down
5 changes: 4 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@
"typescript": "^5.0.0",
"vite": "^5.0.3"
},
"type": "module"
"type": "module",
"engines": {
"node": ">=18.13"
}
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ If you want to suppress this error, set allowReservedSwaRoutes to true in your a
outfile: join(functionDir, 'index.js'),
bundle: true,
platform: 'node',
target: 'node16',
target: 'node18',
sourcemap: 'linked',
external: esbuildOptions.external,
keepNames: esbuildOptions.keepNames,
Expand Down Expand Up @@ -218,7 +218,7 @@ export function generateConfig(customStaticWebAppConfig, appDir) {
rewrite: ssrFunctionRoute
},
platform: {
apiRuntime: 'node:16',
apiRuntime: 'node:18',
...customStaticWebAppConfig.platform
}
};
Expand Down
Loading

0 comments on commit c77c842

Please sign in to comment.