build: configure Cloudflare Pages deployment

- Add wrangler CLI and workerd runtime as dev dependencies
- Configure nitro prerender with autoSubfolderIndex disabled for Pages
- Add Turnstile validation endpoint for server-side CAPTCHA verification
- Add baseline-browser-mapping for browser compatibility
This commit is contained in:
2026-02-04 22:40:50 +01:00
parent 70e4ce8b4b
commit 1162e4e85e
7 changed files with 752 additions and 50 deletions

9
wrangler.toml Normal file
View File

@@ -0,0 +1,9 @@
name = "phundrak-com-frontend"
compatibility_date = "2025-01-01"
pages_build_output_dir = "dist"
# D1 Database binding for Nuxt Content
[[d1_databases]]
binding = "DB"
database_name = "dev-phundrak-content"
database_id = "91ad6cc9-c5ee-4d61-951c-1e74c77f6892"