svelte-azure-swa-template
This is a template website using SvelteKit which uses the Azure SWA adapter to deploy as an Azure Static Web App. The adapter allows for server side rendering, which is not a traditional feature of an Azure SWA.
This repository is a template, so you can easily take it and build your own website.
Azure Setup
- Create a Static Web App resource
- Set the name, hosting plan, region etc to your preference
- Under "Deployment details", choose GitHub, and grant access for Azure to use your account/organization
- Select your desired organization, repository and branch
- Set the "Build Presets" to SvelteKit, and leave the remaining three boxes as default
- Create
- Find the website link from within the resource (it may take minutes for the Azure service to create & for the workflow to run)
Build not working? Look for differences in the GH workflow we made on mytenant-dashboard: https://github.com/flytegg/mytenant-dashboard/tree/master