Skip to content

Commit e2a7142

Browse files
committed
fix: add dummy route to prevent vue-router warning
1 parent 8158351 commit e2a7142

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
1616
shadowRoot: true,
1717
configureApp(app) {
1818
const router = createRouter({
19-
routes: [],
19+
routes: [
20+
// Dummy route
21+
{ path: '/', component: { template: '<div>Nuxt Studio Home</div>' } },
22+
],
2023
history: createWebHistory(),
2124
})
2225

0 commit comments

Comments
 (0)