Skip to content

Commit 47bbad5

Browse files
Revert "remove AUTH_URL since it unused and (likely) unnecessary"
This reverts commit 1f4a5ae.
1 parent 1f4a5ae commit 47bbad5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
1818
AUTH_SECRET="00000000000000000000000000000000000000000000"
19+
AUTH_URL="http://localhost:3000"
1920
# AUTH_CREDENTIALS_LOGIN_ENABLED=true
2021
# AUTH_GITHUB_CLIENT_ID=""
2122
# AUTH_GITHUB_CLIENT_SECRET=""

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ if [ -z "$AUTH_SECRET" ]; then
7474
set +a
7575
fi
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.
7984
FIRST_RUN_FILE="$DATA_CACHE_DIR/.installedv2"

packages/web/src/env.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)