removed bare dev fallback routes, only support developmnet in
docker/podman
This commit is contained in:
parent
702d99b9ed
commit
c7f6b30b87
13 changed files with 47 additions and 121 deletions
|
|
@ -5,7 +5,7 @@ import { createPocketBase } from '$lib/pb';
|
|||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
event.locals.pb = createPocketBase(
|
||||
event.request.headers.get('cookie') ?? '',
|
||||
env.POCKETBASE_INTERNAL_URL || env.PUBLIC_POCKETBASE_URL || 'http://localhost:8080'
|
||||
env.POCKETBASE_INTERNAL_URL
|
||||
);
|
||||
event.locals.user = event.locals.pb.authStore.record;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue