Skip to content

Commit

Permalink
Add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
daveearley committed Jan 27, 2025
1 parent e99b1ad commit 8724704
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
frontend/.env
backend/.env
todo.md

.vercel
2 changes: 1 addition & 1 deletion backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

CORS_ALLOWED_ORIGINS=http://localhost:5173
CORS_ALLOWED_ORIGINS=*

LOG_CHANNEL=stderr
LOG_DEPRECATIONS_CHANNEL=null
Expand Down
2 changes: 1 addition & 1 deletion backend/config/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'allowed_methods' => ['*'],

'allowed_origins' => [env('APP_FRONTEND_URL', '*')],
'allowed_origins' => [env('CORS_ALLOWED_ORIGINS', '*')],

'allowed_origins_patterns' => [],

Expand Down
2 changes: 2 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ dist-ssr
*.sln
*.sw?


.vercel
1 change: 1 addition & 0 deletions frontend/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ export const router: RouteObject[] = [
} catch (error: any) {
// for 404s we want to return null so that the 404 page is shown
if (error?.response?.status === 404) {
console.error("Event not found", error);
return {event: null, promoCodeValid: undefined, promoCode: null};
}

Expand Down

0 comments on commit 8724704

Please sign in to comment.