-
Notifications
You must be signed in to change notification settings - Fork 0
chore: update redirect url setting #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,8 @@ export default { | |
| out: './drizzle', | ||
| dbCredentials: { | ||
| url: `${process.env.DATABASE_URL}`, | ||
| // ssl: { | ||
| // rejectUnauthorized: false, | ||
| // }, | ||
| ssl: { | ||
| rejectUnauthorized: false, | ||
| }, | ||
|
Comment on lines
+9
to
+11
|
||
| }, | ||
| } satisfies Config; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ export const auth = betterAuth({ | |
| secret: process.env.BETTER_AUTH_SECRET as string, | ||
| baseURL: process.env.BETTER_AUTH_URL as string, | ||
| // allow requests from the frontend development server | ||
| trustedOrigins: ['http://localhost:5173'], | ||
| trustedOrigins: ['https://pay-crew2.yukiosada.work', 'http://localhost:5173'], | ||
|
||
| socialProviders: { | ||
| discord: { | ||
| clientId: process.env.DISCORD_CLIENT_ID as string, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ export const auth = (env: Bindings) => { | |
| secret: env.BETTER_AUTH_SECRET, | ||
| baseURL: env.BETTER_AUTH_URL, | ||
| // allow requests from the frontend development server | ||
| trustedOrigins: ['http://localhost:5173'], | ||
| trustedOrigins: ['https://pay-crew2.yukiosada.work', 'http://localhost:5173'], | ||
|
||
| socialProviders: { | ||
| discord: { | ||
| clientId: env.DISCORD_CLIENT_ID, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| VITE_API_URL= | ||
|
|
||
| VITE_REDIRECT_URL= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config now enables SSL unconditionally. The local development Postgres in
compose.yamluses the stockpostgres:latestimage without SSL certs configured, which rejects SSL connections by default. As a result,drizzle-kit generate/migrate/studiowill fail locally with a “server does not support SSL” error when using the standardDATABASE_URL. Consider gatingsslon an environment flag or encodingsslmodeinDATABASE_URLso local dev remains usable.Useful? React with 👍 / 👎.