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 PartySocket from 'partysocket';
import { PUBLIC_PARTYKIT_HOST, PUBLIC_PARTYKIT_PARTY } from '$env/static/public';
function generateId() {
const id = uuidv4();
return id;
}
const partyHost = import.meta.env.PUBLIC_PARTYKIT_HOST?.trim();
const partyName = import.meta.env.PUBLIC_PARTYKIT_PARTY || 'main';
const partyHost = PUBLIC_PARTYKIT_HOST?.trim();
const partyName = PUBLIC_PARTYKIT_PARTY || 'main';
function getPartyKitHost() {
if (partyHost) {