Skip to content

Commit 8b4f3f8

Browse files
committed
docs: add engines documentation
1 parent 5cb8c96 commit 8b4f3f8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ If you use a custom API directory (see [below](#apiDir)), your `api_location` wi
4343

4444
If your `app_location` is in a subfolder (e.g. `./my_app_location`), then your `api_location` should include the path to that subfolder (e.g. `my_app_location/build/server`.) `output_location` should still be `build/static`.
4545

46+
### Building with the correct version of Node
47+
48+
Oryx, Azure's build system, may attempt to build your application with an EOL version of Node that SvelteKit doesn't support. If you get an error like "Unsupported engine - Not compatible with your version of node/npm", you can force Oryx to use the correct version by setting an `engines` field in your app's `package.json`:
49+
50+
```js
51+
"engines": {
52+
"node": ">=18.13 <19"
53+
}
54+
```
55+
4656
## Running locally with the Azure SWA CLI
4757

4858
You can debug using the [Azure Static Web Apps CLI](https://github.com/Azure/static-web-apps-cli). Note that the CLI is currently in preview and you may encounter issues.

0 commit comments

Comments
 (0)