mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-13 11:03:46 +00:00
fix(*): Fix env var not being picked up
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user