feat(router): mount pages-v2 at /v2/* with v2- name prefix
Adds a second routesFolder (src/pages-v2 -> /v2/) and extends getRouteName so v2 routes get a v2- NAME prefix, preventing collisions with same-named v1 pages. getPascalCaseRouteName already folds the v2/ URL segment into the base name, so the leading v2- is stripped before v2RouteName re-adds the canonical prefix (avoids v2-v2-dashboard). Includes the regenerated typed-router.d.ts and a boot-proof pages-v2/dashboard.vue placeholder. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
9
apps/app/src/pages-v2/dashboard.vue
Normal file
9
apps/app/src/pages-v2/dashboard.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
definePage({ meta: { layout: 'OrganizerLayoutV2', public: true } })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div data-testid="v2-dashboard-placeholder">
|
||||
v2 dashboard
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user