mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
feat(server): allow customizing server port via SHUMAI_SERVER_PORT
This commit is contained in:
@@ -15,9 +15,13 @@ export const auth = betterAuth({
|
||||
},
|
||||
secret: process.env.BETTER_AUTH_SECRET,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
baseURL: process.env.BETTER_AUTH_URL || 'http://localhost:3000',
|
||||
baseURL:
|
||||
process.env.BETTER_AUTH_URL || `http://localhost:${process.env.SHUMAI_SERVER_PORT || '3000'}`,
|
||||
basePath: '/api/auth',
|
||||
trustedOrigins: ['http://localhost:3000', 'http://127.0.0.1:3000'],
|
||||
trustedOrigins: [
|
||||
`http://localhost:${process.env.SHUMAI_SERVER_PORT || '3000'}`,
|
||||
`http://127.0.0.1:${process.env.SHUMAI_SERVER_PORT || '3000'}`,
|
||||
],
|
||||
advanced: {
|
||||
disableCSRFCheck: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user