Working boilerplate.

This commit is contained in:
2025-01-25 21:38:34 -07:00
parent 8c8ec659a9
commit f37e52f851
4 changed files with 45 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import NotFoundView from '../views/NotFoundView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -17,6 +18,11 @@ const router = createRouter({
// which is lazy-loaded when the route is visited.
component: () => import('../views/AboutView.vue'),
},
{
path: "/:catchAll(.*)",
name: 'not-found',
component: NotFoundView,
},
],
})

View File

@@ -0,0 +1,8 @@
<script setup lang="ts">
</script>
<template>
<main>
<h1>Not Found</h1>
</main>
</template>