Skip to content

Commit 9b5a60c

Browse files
committed
Rever changes
1 parent 1d8e584 commit 9b5a60c

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

astro.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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",

src/pages/api/stripe-webhook.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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 {

src/types/product.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)