add single entrypoint to server to simplify deployment

This commit is contained in:
Yeicor
2024-02-17 10:38:50 +01:00
parent 7f7ff86f9f
commit 92c917b230
3 changed files with 25 additions and 4 deletions

1
src/misc/network.ts Normal file
View File

@@ -0,0 +1 @@

View File

@@ -1,7 +1,13 @@
// These are the default values for the settings, which are overridden below
export const settings = {
// @ts-ignore
preloadModels: [new URL('../../assets/fox.glb', import.meta.url).href, new URL('../../assets/logo.glbs', import.meta.url).href, "ws://localhost:8080"],
preloadModels: [
// @ts-ignore
new URL('../../assets/fox.glb', import.meta.url).href,
// @ts-ignore
new URL('../../assets/logo.glbs', import.meta.url).href,
// Websocket URLs automatically listen for new models from the python backend
"ws://localhost:8080/"
],
// ModelViewer settings
autoplay: true,
arModes: 'webxr scene-viewer quick-look',