Setup nginx conf for single-page routing

This commit is contained in:
2022-04-09 09:34:29 -05:00
parent ecdb474f7e
commit c28b8de128
5 changed files with 30 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ import { MathPage } from './support/page'
<template>
<div id="nav">
<router-link to="/">Home</router-link>
<router-link to="/">Home</router-link> |
<router-link to="/scratch">Scratch Testing</router-link>
</div>
<router-view/>
</template>

View File

@@ -0,0 +1,7 @@
<script setup lang="ts">
</script>
<template>
<p>Scratch page for testing!</p>
</template>

View File

@@ -7,6 +7,11 @@ const routes = [
name: 'Home',
component: Home,
},
{
path: '/scratch',
name: 'Scratch',
component: () => import(/* webpackChunkName: "scratch" */ './components/Scratch.vue'),
},
]
const router = createRouter({