feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes

This commit is contained in:
Yun Chan 2026-11-14 11:51:41 +09:00
parent 01ef3293cf
commit 66b6b45ba9
399 changed files with 17828 additions and 11330 deletions

View file

@ -1,5 +1,6 @@
import { corsHeaders, handleCorsPreflightRequest } from '../_shared/cors.ts'
import { handleCorsPreflightRequest } from '../_shared/cors.ts'
import { requireUser, authErrorResponse, type AuthError } from '../_shared/auth.ts'
import { buildJsonHeaders, createJsonResponder } from '../_shared/json-response.ts'
import {
createBillingCatalog,
type BillingCatalogTier,
@ -10,16 +11,8 @@ import {
TIER_PRICE,
} from '../_shared/payple.ts'
const NO_STORE_HEADERS = {
...corsHeaders,
'Content-Type': 'application/json',
'Cache-Control': 'no-store',
'X-Content-Type-Options': 'nosniff',
}
function jsonResponse(body: unknown, status = 200): Response {
return new Response(JSON.stringify(body), { status, headers: NO_STORE_HEADERS })
}
const NO_STORE_HEADERS = buildJsonHeaders({ noStore: true, noSniff: true })
const jsonResponse = createJsonResponder({ noStore: true, noSniff: true })
Deno.serve(async (req: Request) => {
const preflight = handleCorsPreflightRequest(req)