diff --git a/.env.example b/.env.example index 63b30aa..99327b7 100644 --- a/.env.example +++ b/.env.example @@ -64,6 +64,7 @@ VITE_MARKET_NADDR=naddr1qqjxgdp4vv6rydej943n2dny956rwwf4943xzwfc95ekyd3evenrsvrr # VITE_HUB_FORUM_URL=http://localhost:5184 # VITE_HUB_MARKET_URL=http://localhost:5185 # VITE_HUB_TASKS_URL=http://localhost:5186 +# VITE_HUB_RESTAURANT_URL=http://localhost:5187 # # In PATH-MODE production (recommended for demo) — note the trailing slash: # VITE_HUB_ACTIVITIES_URL=https://demo.example.com/activities/ @@ -73,6 +74,7 @@ VITE_MARKET_NADDR=naddr1qqjxgdp4vv6rydej943n2dny956rwwf4943xzwfc95ekyd3evenrsvrr # VITE_HUB_FORUM_URL=https://demo.example.com/forum/ # VITE_HUB_MARKET_URL=https://demo.example.com/market/ # VITE_HUB_TASKS_URL=https://demo.example.com/tasks/ +# VITE_HUB_RESTAURANT_URL=https://demo.example.com/restaurant/ # # In SUBDOMAIN-MODE production: # VITE_HUB_ACTIVITIES_URL=https://sortir.example.com @@ -86,6 +88,7 @@ VITE_HUB_CHAT_URL= VITE_HUB_FORUM_URL= VITE_HUB_MARKET_URL= VITE_HUB_TASKS_URL= +VITE_HUB_RESTAURANT_URL= # ─────────────────────────────────────────────────────────────────────── # VITE_HUB_ROOT_URL — standalone → hub (the inverse of the URLs above) diff --git a/src/pages/Hub.vue b/src/pages/Hub.vue index 85eda00..d4d608b 100644 --- a/src/pages/Hub.vue +++ b/src/pages/Hub.vue @@ -29,7 +29,7 @@ interface Module { // Lower (root/red) → upper (crown/violet) const modules: Module[] = [ - { label: 'Restaurant', chakra: 'Muladhara', icon: UtensilsCrossed, bgClass: '', glow: 'rgba(255,80,80,0.5)', status: 'coming soon' }, + { label: 'Restaurant', chakra: 'Muladhara', icon: UtensilsCrossed, bgClass: '', glow: 'rgba(255,80,80,0.5)', envKey: 'VITE_HUB_RESTAURANT_URL', status: 'alpha' }, { label: 'Market', chakra: 'Muladhara', icon: Store, bgClass: '', glow: 'rgba(255,80,80,0.5)', envKey: 'VITE_HUB_MARKET_URL', status: 'alpha' }, { label: 'Wallet', chakra: 'Manipura', icon: Wallet, bgClass: '', glow: 'rgba(255,200,0,0.5)', envKey: 'VITE_HUB_WALLET_URL', status: 'alpha', authRequired: true }, { label: 'Activities', chakra: 'Swadhisthana', icon: CalendarDays, bgClass: '', glow: 'rgba(255,165,0,0.5)', envKey: 'VITE_HUB_ACTIVITIES_URL', status: 'beta' }, diff --git a/vite.restaurant.config.ts b/vite.restaurant.config.ts index 506655b..c9c697c 100644 --- a/vite.restaurant.config.ts +++ b/vite.restaurant.config.ts @@ -46,7 +46,7 @@ export default defineConfig(({ mode }) => ({ // Per-app dep cache so concurrent dev servers don't race on .vite/deps cacheDir: 'node_modules/.vite-restaurant', server: { - port: 5186, + port: 5187, strictPort: true, }, plugins: [