File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ export default defineConfig({
6161 STRIPE_PUBLISHABLE_KEY : envField . string ( {
6262 context : "client" ,
6363 access : "public" ,
64- optional : true ,
6564 } ) ,
6665 STRIPE_API_VERSION : envField . string ( {
6766 context : "client" ,
Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ export const POST: APIRoute = async ({ request }) => {
4242 return new Response ( "No signature provided" , { status : 400 } ) ;
4343 }
4444
45- if ( ! siteConfig . stripe . webhookSecret ) {
46- return new Response ( "Stripe not configured" , { status : 503 } ) ;
47- }
48-
4945 let event ;
5046
5147 try {
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export interface SiteConfig {
193193
194194 // ─── Stripe (env-var only — never set these in admin UI) ────────────────
195195 stripe : {
196- publishableKey : string | undefined ;
197- webhookSecret : string | undefined ;
196+ publishableKey : string ;
197+ webhookSecret : string ;
198198 } ;
199199}
You can’t perform that action at this time.
0 commit comments