File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ SRC_TENANT_ENFORCEMENT_MODE=strict
1616# openssl rand -base64 33
1717# @see: https://authjs.dev/getting-started/deployment#auth_secret
1818AUTH_SECRET = " 00000000000000000000000000000000000000000000"
19+ AUTH_URL = " http://localhost:3000"
1920# AUTH_CREDENTIALS_LOGIN_ENABLED=true
2021# AUTH_GITHUB_CLIENT_ID=""
2122# AUTH_GITHUB_CLIENT_SECRET=""
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ if [ -z "$AUTH_SECRET" ]; then
7474 set +a
7575fi
7676
77+ if [ -z " $AUTH_URL " ]; then
78+ echo -e " \e[33m[Warning] AUTH_URL is not set.\e[0m"
79+ export AUTH_URL=" http://localhost:3000"
80+ fi
81+
7782# In order to detect if this is the first run, we create a `.installed` file in
7883# the cache directory.
7984FIRST_RUN_FILE=" $DATA_CACHE_DIR /.installedv2"
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export const env = createEnv({
2424 AUTH_GITHUB_CLIENT_SECRET : z . string ( ) . optional ( ) ,
2525 AUTH_GOOGLE_CLIENT_ID : z . string ( ) . optional ( ) ,
2626 AUTH_GOOGLE_CLIENT_SECRET : z . string ( ) . optional ( ) ,
27+ AUTH_URL : z . string ( ) . url ( ) ,
2728 AUTH_CREDENTIALS_LOGIN_ENABLED : booleanSchema . default ( 'true' ) ,
2829
2930 // Email
You can’t perform that action at this time.
0 commit comments