fix(*): Fix env var not being picked up

This commit is contained in:
Josh Creek
2026-01-25 19:41:59 +00:00
parent e5041d847e
commit d982b5968a
+3 -2
View File
@@ -1,13 +1,14 @@
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
import PartySocket from 'partysocket'; import PartySocket from 'partysocket';
import { PUBLIC_PARTYKIT_HOST, PUBLIC_PARTYKIT_PARTY } from '$env/static/public';
function generateId() { function generateId() {
const id = uuidv4(); const id = uuidv4();
return id; return id;
} }
const partyHost = import.meta.env.PUBLIC_PARTYKIT_HOST?.trim(); const partyHost = PUBLIC_PARTYKIT_HOST?.trim();
const partyName = import.meta.env.PUBLIC_PARTYKIT_PARTY || 'main'; const partyName = PUBLIC_PARTYKIT_PARTY || 'main';
function getPartyKitHost() { function getPartyKitHost() {
if (partyHost) { if (partyHost) {