diff --git a/website/src/components/website/WebsiteNav.vue b/website/src/components/website/WebsiteNav.vue index b791e131..7ef96f88 100644 --- a/website/src/components/website/WebsiteNav.vue +++ b/website/src/components/website/WebsiteNav.vue @@ -16,8 +16,9 @@ Beta development version: things may break. Use slmn.gg for the latest stable update. - - SLMN.GG is running in local development mode. + + + SLMN.GG is running in local development mode but not using a local data server. @@ -148,6 +149,10 @@ export default { siteMode() { return import.meta.env.VITE_DEPLOY_MODE || import.meta.env.NODE_ENV; }, + dataServerMode() { + const dataServerURL = new URL(import.meta.env.VITE_DATA_SERVER); + return ["localhost", "127.0.0.1"].includes(dataServerURL.hostname) ? "local" : "remote"; + }, navbarEvents() { if (!this.minisite?.id) return []; const events = ReactiveRoot(this.minisite.id, {