get env files working with new svelte kit expression

This commit is contained in:
JCEEE
2026-06-24 16:15:48 +01:00
parent be572b487a
commit 170a52f19a
83 changed files with 128 additions and 26194 deletions
+7
View File
@@ -0,0 +1,7 @@
import { defineEnvVars } from '@sveltejs/kit/hooks';
export const variables = defineEnvVars({
DEBUG_RECORD_ID: {},
SERVER_IP: {public: true},
PB_PORT: {public: true}
});
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -1,4 +1,4 @@
import { DEBUG_RECORD_ID } from '../../../../config';
import { DEBUG_RECORD_ID } from '$app/env/private';
export async function load() {
return {
recordId: DEBUG_RECORD_ID