Skip to content

Commit

Permalink
[feat] support Azure Static Web Apps in adapter-auto (#6761)
Browse files Browse the repository at this point in the history
* [feat] support Azure SWA

* changeset
  • Loading branch information
geoffrich authored Sep 13, 2022
1 parent 3548413 commit c24894b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-vans-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-auto': patch
---

[feat] support Azure SWA
1 change: 1 addition & 0 deletions packages/adapter-auto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The following environments are supported out-of-the-box, meaning a newly created
- [Cloudflare Pages](https://developers.cloudflare.com/pages/) via [adapter-cloudflare](../adapter-cloudflare)
- [Netlify](https://netlify.com/) via [adapter-netlify](../adapter-netlify)
- [Vercel](https://vercel.com/) via [adapter-vercel](../adapter-vercel)
- [Azure Static Web Apps](https://docs.microsoft.com/en-us/azure/static-web-apps/) via [svelte-adapter-azure-swa](https://github.com/geoffrich/svelte-adapter-azure-swa)

## Community adapters

Expand Down
5 changes: 5 additions & 0 deletions packages/adapter-auto/adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ export const adapters = [
name: 'Netlify',
test: () => !!process.env.NETLIFY,
module: '@sveltejs/adapter-netlify'
},
{
name: 'Azure Static Web Apps',
test: () => process.env.GITHUB_ACTION_REPOSITORY === 'Azure/static-web-apps-deploy',
module: 'svelte-adapter-azure-swa'
}
];

0 comments on commit c24894b

Please sign in to comment.