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
16
16
# openssl rand -base64 33
17
17
# @see: https://authjs.dev/getting-started/deployment#auth_secret
18
18
AUTH_SECRET = " 00000000000000000000000000000000000000000000"
19
+ AUTH_URL = " http://localhost:3000"
19
20
# AUTH_CREDENTIALS_LOGIN_ENABLED=true
20
21
# AUTH_GITHUB_CLIENT_ID=""
21
22
# AUTH_GITHUB_CLIENT_SECRET=""
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ if [ -z "$AUTH_SECRET" ]; then
74
74
set +a
75
75
fi
76
76
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
+
77
82
# In order to detect if this is the first run, we create a `.installed` file in
78
83
# the cache directory.
79
84
FIRST_RUN_FILE=" $DATA_CACHE_DIR /.installedv2"
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export const env = createEnv({
24
24
AUTH_GITHUB_CLIENT_SECRET : z . string ( ) . optional ( ) ,
25
25
AUTH_GOOGLE_CLIENT_ID : z . string ( ) . optional ( ) ,
26
26
AUTH_GOOGLE_CLIENT_SECRET : z . string ( ) . optional ( ) ,
27
+ AUTH_URL : z . string ( ) . url ( ) ,
27
28
AUTH_CREDENTIALS_LOGIN_ENABLED : booleanSchema . default ( 'true' ) ,
28
29
29
30
// Email
You can’t perform that action at this time.
0 commit comments