Skip to content

Commit 8724704

Browse files
committed
Add debug logging
1 parent e99b1ad commit 8724704

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
frontend/.env
77
backend/.env
88
todo.md
9+
10+
.vercel

backend/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ STRIPE_PUBLIC_KEY=
1616
STRIPE_SECRET_KEY=
1717
STRIPE_WEBHOOK_SECRET=
1818

19-
CORS_ALLOWED_ORIGINS=http://localhost:5173
19+
CORS_ALLOWED_ORIGINS=*
2020

2121
LOG_CHANNEL=stderr
2222
LOG_DEPRECATIONS_CHANNEL=null

backend/config/cors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
'allowed_methods' => ['*'],
2121

22-
'allowed_origins' => [env('APP_FRONTEND_URL', '*')],
22+
'allowed_origins' => [env('CORS_ALLOWED_ORIGINS', '*')],
2323

2424
'allowed_origins_patterns' => [],
2525

frontend/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ dist-ssr
2323
*.sln
2424
*.sw?
2525

26+
27+
.vercel

frontend/src/router.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ export const router: RouteObject[] = [
350350
} catch (error: any) {
351351
// for 404s we want to return null so that the 404 page is shown
352352
if (error?.response?.status === 404) {
353+
console.error("Event not found", error);
353354
return {event: null, promoCodeValid: undefined, promoCode: null};
354355
}
355356

0 commit comments

Comments
 (0)