Skip to content

Conversation

@lfgcampos
Copy link
Contributor

Should fix #45

@vercel
Copy link

vercel bot commented Jan 23, 2026

@lfgcampos is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@dcramer
Copy link
Member

dcramer commented Jan 25, 2026

makes sense - i had considered doing it but was being lazy. i think just make sure we dont have any bypasses (i agree w/ the cursor flag here - only needed in dev)

@lfgcampos
Copy link
Contributor Author

makes sense - i had considered doing it but was being lazy. i think just make sure we dont have any bypasses (i agree w/ the cursor flag here - only needed in dev)

sorry for the long time, that should now be fixed =)

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.


// Redirect to home if auth is bypassed (local development)
const isAuthBypassed =
process.env.NODE_ENV !== 'production' && process.env.AUTH_BYPASS_LOCAL === 'true';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auth bypass check duplicated in three separate files

Low Severity

The isAuthBypassed expression (process.env.NODE_ENV !== 'production' && process.env.AUTH_BYPASS_LOCAL === 'true') is duplicated verbatim in three files: src/lib/auth.ts, src/proxy.ts, and src/app/sign-in/layout.tsx. If the bypass condition ever needs to change (e.g., adding an additional safety check), all three must be updated in lockstep — easy to miss. Extracting it into a small dependency-free module (e.g., src/lib/dev-config.ts) would let all three import the same value, including the Edge-runtime proxy.ts.

Additional Locations (2)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Remove login for local development

2 participants