get env files working with new svelte kit expression
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import PocketBase from 'pocketbase';
|
||||
import { SERVER_IP, PB_PORT } from '../../../config.ts';
|
||||
import { SERVER_IP, PB_PORT } from '$app/env/public';
|
||||
|
||||
const url = `http://${SERVER_IP}:${PB_PORT}`;
|
||||
export const pb: PocketBase = new PocketBase(url);
|
||||
|
||||
Reference in New Issue
Block a user