fix: do not prerender api routes

This commit is contained in:
kolaente 2024-07-01 22:00:52 +02:00
parent d1b8eb4ed3
commit 35a2dbdcce
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
export const prerender = false
export async function GET() {
return new Response(JSON.stringify({
healthy: true,

View File

@ -3,6 +3,8 @@ import {TURNSTILE_SECRET} from 'astro:env/server'
const LIST_ID = 'f0bc9ec2-56a4-48c8-baad-7a31b137484e'
export const prerender = false
export async function POST({request}: APIContext) {
const body = await request.formData()