diff --git a/app/src/lib/stores/index.ts b/app/src/lib/stores/index.ts index b92ae27..ad2e51a 100644 --- a/app/src/lib/stores/index.ts +++ b/app/src/lib/stores/index.ts @@ -7,3 +7,4 @@ export * from './telemetry'; export * from './analytics'; export * from './user'; export * from './featureFlags'; +export * from './location-store'; diff --git a/app/src/lib/stores/location-store.ts b/app/src/lib/stores/location-store.ts new file mode 100644 index 0000000..1e4d4d8 --- /dev/null +++ b/app/src/lib/stores/location-store.ts @@ -0,0 +1,3 @@ +import { persistentStore } from '$lib/utilities'; + +export const location = persistentStore('location', '/'); diff --git a/app/src/lib/utilities/index.ts b/app/src/lib/utilities/index.ts index 6a850f5..acbf139 100644 --- a/app/src/lib/utilities/index.ts +++ b/app/src/lib/utilities/index.ts @@ -4,7 +4,6 @@ export * from './svelte-utilities'; export * from './math-utilities'; export * from './buffer-utilities'; export * from './model-utilities'; -export * from './location-utilities'; export * from './position-utilities'; export * from './string-utilities'; export * from './color-utilities'; diff --git a/app/src/lib/utilities/location-utilities.ts b/app/src/lib/utilities/location-utilities.ts deleted file mode 100644 index 0ba138a..0000000 --- a/app/src/lib/utilities/location-utilities.ts +++ /dev/null @@ -1,9 +0,0 @@ -export const hostname = 'localhost'; //window.location.hostname; - -export const isSecure = true; // window.location.protocol === 'https:'; - -export const location = 'localhost:5173'; //window.location; //import.meta.env.VITE_API_URL.replace('hostname', hostname); - -const socketScheme = isSecure ? 'wss://' : 'ws://'; - -export const socketLocation = socketScheme + location; // import.meta.env.VITE_SOCKET_URL.replace('hostname', hostname);