-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve pocketbase url for local dev env
- Loading branch information
1 parent
bc8ba27
commit d39c6ee
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import PocketBase from 'pocketbase'; | ||
import type { TypedPocketBase } from './pocketbase-types'; | ||
import { dev } from '$app/environment'; | ||
|
||
export const pb = new PocketBase() as TypedPocketBase; | ||
export const pb = new PocketBase(dev ? 'http://localhost:8090' : undefined) as TypedPocketBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters