Skip to content

Commit 31a9e0e

Browse files
Rich-HarrisConduitrybenmccann
authored
add note about setting node version (#5068)
* add note about setting node version * update screenshot * compact image * Update packages/adapter-vercel/README.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> Co-authored-by: Conduitry <git@chor.date> Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 parent f271b02 commit 31a9e0e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/adapter-vercel/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,16 @@ export default {
3838

3939
## Notes
4040

41+
### Vercel functions
42+
4143
Vercel functions contained in the `/api` directory at the project's root will _not_ be included in the deployment — these should be implemented as [endpoints](https://kit.svelte.dev/docs/routing#endpoints) in your SvelteKit app.
4244

45+
### Node version
46+
47+
Projects created before a certain date will default to using Node 14, while SvelteKit requires Node 16 or later. You can change that in your project settings:
48+
49+
![Vercel project settings](settings.png)
50+
4351
## Changelog
4452

4553
[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/master/packages/adapter-vercel/CHANGELOG.md).

packages/adapter-vercel/settings.png

82.8 KB
Loading

0 commit comments

Comments
 (0)