Skip to content

svelte-adapter-azure-swa v0.21.0

Choose a tag to compare

@github-actions github-actions released this 04 Mar 18:00

This release migrates the sk_render Azure function used for server-side request handling to v4 of the Node.js programming model. This should be a non-breaking change for most users, but some configuration options require changes.

Breaking changes

The server-side request handling Azure function's path has changed from /api/__render to /api/sk_render, since v4 does not allow routes starting with underscores. If you have any configuration relying on that path (unlikely), you will need to make updates to use the new path.

If you are setting the apiDir option and deploying other Azure functions with your Static Web App, this is a breaking change and you need to make the following updates:

  • Any other Azure functions you deploy with your Static Web App need to be migrated to the v4 programming model
  • The main field in your package.json needs to use a glob pattern that includes both the sk_render/index.js entrypoint as well as the entrypoints for your other Azure functions.
  • The SvelteKit Azure function now uses the prefix sk_render, so you can't have another Azure function using that prefix
  • If you are using a CUSTOM_BUILD_COMMAND, make sure to install dependencies inside the build/server folder

Features

Special thanks to @derkoe and @ktarmyshov for their PRs for this feature!