feat(hub): wire Restaurant tile + bump dev port to 5187
The Restaurant chakra tile was stubbed as 'coming soon' since the bundle didn't exist. Now that aiolabs/webapp ships a restaurant bundle, switch it to envKey-driven so deploys can set VITE_HUB_RESTAURANT_URL the same way they set the other 7 standalones. Also bumps the vite dev port from 5186 → 5187 — tasks was already on 5186 and `npm run dev:all` raced. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
31312688b5
commit
4a42a6054c
3 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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' },
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue