Skip to content

Commit c24894b

Browse files
authored
[feat] support Azure Static Web Apps in adapter-auto (#6761)
* [feat] support Azure SWA * changeset
1 parent 3548413 commit c24894b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.changeset/eight-vans-exercise.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-auto': patch
3+
---
4+
5+
[feat] support Azure SWA

packages/adapter-auto/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The following environments are supported out-of-the-box, meaning a newly created
99
- [Cloudflare Pages](https://developers.cloudflare.com/pages/) via [adapter-cloudflare](../adapter-cloudflare)
1010
- [Netlify](https://netlify.com/) via [adapter-netlify](../adapter-netlify)
1111
- [Vercel](https://vercel.com/) via [adapter-vercel](../adapter-vercel)
12+
- [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)
1213

1314
## Community adapters
1415

packages/adapter-auto/adapters.js

+5
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@ export const adapters = [
1313
name: 'Netlify',
1414
test: () => !!process.env.NETLIFY,
1515
module: '@sveltejs/adapter-netlify'
16+
},
17+
{
18+
name: 'Azure Static Web Apps',
19+
test: () => process.env.GITHUB_ACTION_REPOSITORY === 'Azure/static-web-apps-deploy',
20+
module: 'svelte-adapter-azure-swa'
1621
}
1722
];

0 commit comments

Comments
 (0)