fix: support demo login in standalone apps

Standalone apps now conditionally load LoginDemo.vue when
VITE_DEMO_MODE=true, matching the main app's behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-04-27 17:51:33 +02:00
commit 38492ad592
2 changed files with 6 additions and 2 deletions

View file

@ -64,7 +64,9 @@ export async function createAppInstance() {
{
path: '/login',
name: 'login',
component: () => import('@/pages/Login.vue'),
component: import.meta.env.VITE_DEMO_MODE === 'true'
? () => import('@/pages/LoginDemo.vue')
: () => import('@/pages/Login.vue'),
meta: { requiresAuth: false }
},
...moduleRoutes,

View file

@ -60,7 +60,9 @@ export async function createAppInstance() {
{
path: '/login',
name: 'login',
component: () => import('@/pages/Login.vue'),
component: import.meta.env.VITE_DEMO_MODE === 'true'
? () => import('@/pages/LoginDemo.vue')
: () => import('@/pages/Login.vue'),
meta: { requiresAuth: false }
},
...moduleRoutes,