Switch to static output and add Azure SWA deployment

- Set output: 'static' in astro.config.mjs; remove Vercel/Netlify adapters
- Remove API routes (contact, newsletter) incompatible with static mode
- Add Azure SWA deploy workflow using @azure/static-web-apps-cli via npx
- Add public/staticwebapp.config.json for SWA routing and 404 fallback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel Krähenbühl
2026-04-13 21:58:47 +02:00
parent d668aa0fdf
commit c043b2373b
7 changed files with 112 additions and 4016 deletions
+1 -9
View File
@@ -4,13 +4,9 @@ import sitemap from '@astrojs/sitemap';
import react from '@astrojs/react';
import icon from 'astro-icon';
import tailwindcss from '@tailwindcss/vite';
import vercel from '@astrojs/vercel';
import netlify from '@astrojs/netlify';
const isNetlify = process.env.DEPLOY_TARGET === 'netlify';
export default defineConfig({
adapter: isNetlify ? netlify() : vercel(),
output: 'static',
site: process.env.SITE_URL || 'https://example.com',
env: {
@@ -52,10 +48,6 @@ export default defineConfig({
},
},
security: {
checkOrigin: true,
},
markdown: {
shikiConfig: {
theme: 'github-dark',