feat: dynamic default route based on enabled site features#458
Open
Micoozz wants to merge 1 commit intoAceDataCloud:mainfrom
Open
feat: dynamic default route based on enabled site features#458Micoozz wants to merge 1 commit intoAceDataCloud:mainfrom
Micoozz wants to merge 1 commit intoAceDataCloud:mainfrom
Conversation
- 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)
b3ea5d9 to
5768a2b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Change root route
/redirect from hardcodedchatgptto dynamic lookup fromsite.features.Changes
src/router/index.ts: Root redirect now readssite.features→ first enabled feature (chat > image > music > video > search)src/constants/serp.ts: Add missingROUTE_SERP_INDEXconstantsrc/components/common/Navigator.vue: FixROUTE_SERP_INDEXimport pathVerification
vue-tsc -bpassesvite buildsucceeds (40.55s)