Skip to content

Commit

Permalink
chore: use proper default PB URL for dev environment
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Goniszewski <robertgoniszewski@outlook.com>
  • Loading branch information
goniszewski committed Apr 3, 2024
1 parent 005d4c1 commit 7289b62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const config = {
IS_DEV: import.meta.env.DEV,
ORIGIN: env.PUBLIC_ORIGIN || getProcessEnvValue('PUBLIC_ORIGIN') || 'http://localhost:5173',
POCKETBASE_URL:
env.PUBLIC_POCKETBASE_URL || getProcessEnvValue('PUBLIC_POCKETBASE_URL') || 'http://pocketbase',
env.PUBLIC_POCKETBASE_URL || getProcessEnvValue('PUBLIC_POCKETBASE_URL') || import.meta.env.DEV
? 'http://localhost:8090'
: 'http://pocketbase',
HTTPS_ONLY:
(env.PUBLIC_HTTPS_ONLY || getProcessEnvValue('PUBLIC_HTTPS_ONLY')) === 'true' || false,
SIGNUP_DISABLED:
Expand Down

0 comments on commit 7289b62

Please sign in to comment.