From 81f099d150111f43b496112931647795c3769d90 Mon Sep 17 00:00:00 2001 From: Terncode Date: Mon, 11 May 2026 21:06:51 +0200 Subject: [PATCH] Fix address on index --- src/ts/server/routes/index.ts | 2 ++ views/index.pug | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ts/server/routes/index.ts b/src/ts/server/routes/index.ts index 2ed47e1..dcfa6fe 100644 --- a/src/ts/server/routes/index.ts +++ b/src/ts/server/routes/index.ts @@ -118,6 +118,8 @@ export function createIndex(assetsPath: string, adminAssetsPath: string) { script, scriptES, oauthProviders, + port: 8091, + address: config.local.split(':')[0], facebookAppId: config.facebookAppId, isPublic: isPublic ? 'true' : undefined, }); diff --git a/views/index.pug b/views/index.pug index d94efaa..c633248 100644 --- a/views/index.pug +++ b/views/index.pug @@ -76,5 +76,5 @@ html(lang="en") if production script(src=script async) else - script(src="http://localhost:8091/assets/scripts/vendor.js") - script(src="http://localhost:8091" + script.replace('/adm/', '/')) + script(src="http://" + address + ":"+ port + "/assets/scripts/vendor.js") + script(src="http://" + address + ":"+ port + script.replace('/adm/', '/'))