From 0efa319d0a03c180a66845d1a4933589084ddb48 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 14 May 2022 05:58:52 -0700 Subject: [PATCH] [docs] setting Node version in `adapter-netlify` (#4921) * [docs] setting Node version in `adapter-netlify` * Update packages/adapter-netlify/README.md * Update packages/adapter-netlify/README.md * Create honest-rats-double.md Co-authored-by: Rich Harris --- .changeset/honest-rats-double.md | 5 +++++ packages/adapter-netlify/README.md | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/honest-rats-double.md diff --git a/.changeset/honest-rats-double.md b/.changeset/honest-rats-double.md new file mode 100644 index 000000000000..db9ce858396f --- /dev/null +++ b/.changeset/honest-rats-double.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/adapter-netlify": patch +--- + +[docs] explain how to change node version diff --git a/packages/adapter-netlify/README.md b/packages/adapter-netlify/README.md index 75897126f6f0..681a0ba65b90 100644 --- a/packages/adapter-netlify/README.md +++ b/packages/adapter-netlify/README.md @@ -42,6 +42,10 @@ Then, make sure you have a [netlify.toml](https://docs.netlify.com/configure-bui If the `netlify.toml` file or the `build.publish` value is missing, a default value of `"build"` will be used. Note that if you have set the publish directory in the Netlify UI to something else then you will need to set it in `netlify.toml` too, or use the default value of `"build"`. +### Node version + +New projects will use Node 16 by default. However, if you're upgrading a project you created a while ago it may be stuck on an older version. See [the Netlify docs](https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript) for details on manually specifying Node 16 or newer. + ## Netlify Edge Functions (beta) SvelteKit supports the beta release of Netlify Edge Functions. If you pass the option `edge: true` to the `adapter` function, server-side rendering will happen in a Deno-based edge function that's deployed close to the site visitor. If set to `false` (the default), the site will deploy to standard Node-based Netlify Functions.