mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2026-02-10 23:36:35 +01:00
add single entrypoint to server to simplify deployment
This commit is contained in:
1
src/misc/network.ts
Normal file
1
src/misc/network.ts
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
@@ -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',
|
||||
Reference in New Issue
Block a user