diff --git a/src/components/Ex.vue b/src/components/Ex.vue new file mode 100644 index 0000000..10b860f --- /dev/null +++ b/src/components/Ex.vue @@ -0,0 +1,3 @@ + diff --git a/src/main.ts b/src/main.ts index 393471e..fa7c5c5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,9 +4,14 @@ import { ViteSSG } from 'vite-ssg' import routes from '~pages' import App from './App.vue' +import Ex from './components/Ex.vue' + +const allRoutes = routes.concat([ + { path: '/blog/mjau', component: Ex }, +]) export const createApp = ViteSSG( App, - { routes }, + { routes: allRoutes }, (() => {}) ) diff --git a/vite.config.ts b/vite.config.ts index 527cdf8..4bc7753 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,11 +1,9 @@ import { fileURLToPath, URL } from 'node:url' -import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import Pages from 'vite-plugin-pages' -// https://vitejs.dev/config/ -export default defineConfig({ +export default { plugins: [ vue(), Pages() @@ -15,4 +13,4 @@ export default defineConfig({ '@': fileURLToPath(new URL('./src', import.meta.url)) } } -}) +}