Skip to content

feat: dynamic default route based on enabled site features#458

Open
Micoozz wants to merge 1 commit intoAceDataCloud:mainfrom
Micoozz:feat/dynamic-default-route
Open

feat: dynamic default route based on enabled site features#458
Micoozz wants to merge 1 commit intoAceDataCloud:mainfrom
Micoozz:feat/dynamic-default-route

Conversation

@Micoozz
Copy link
Copy Markdown

@Micoozz Micoozz commented Apr 21, 2026

Summary

Change root route / redirect from hardcoded chatgpt to dynamic lookup from site.features.

Changes

  • src/router/index.ts: Root redirect now reads site.features → first enabled feature (chat > image > music > video > search)
  • src/constants/serp.ts: Add missing ROUTE_SERP_INDEX constant
  • src/components/common/Navigator.vue: Fix ROUTE_SERP_INDEX import path

Verification

  • vue-tsc -b passes
  • vite build succeeds (40.55s)

- Change root '/' redirect from hardcoded chatgpt to dynamic lookup
  from site.features, following feature priority: chat > image > music
  > video > search
- Add ROUTE_SERP_INDEX constant to src/constants/serp.ts (was missing)
- Fix Navigator.vue import: ROUTE_SERP_INDEX from @/constants/serp
  instead of @/router/constants (pre-existing bug)
@Micoozz Micoozz force-pushed the feat/dynamic-default-route branch from b3ea5d9 to 5768a2b Compare April 21, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant