From 1cd52af18107404985ecc74426085cc814ce5d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Phetphoumy?= Date: Mon, 6 May 2024 16:35:35 +0000 Subject: [PATCH] Test with pages --- app.vue | 5 +---- components/Article.vue | 2 +- layouts/default.vue | 2 +- nuxt.config.ts | 4 ---- pages/[...slug].vue | 8 ++++++++ 5 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 pages/[...slug].vue diff --git a/app.vue b/app.vue index 67eb898..3ad0659 100644 --- a/app.vue +++ b/app.vue @@ -6,11 +6,8 @@ -
-    {{ data }}
-    
- + diff --git a/components/Article.vue b/components/Article.vue index 57b3db1..d9aa08b 100644 --- a/components/Article.vue +++ b/components/Article.vue @@ -1,7 +1,7 @@ diff --git a/layouts/default.vue b/layouts/default.vue index e62cf39..3365670 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -11,7 +11,7 @@ const links = [ diff --git a/nuxt.config.ts b/nuxt.config.ts index 34d6ef6..61bf668 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -4,10 +4,6 @@ export default defineNuxtConfig({ srr: true, css: ['~/assets/css/main.css'], modules: ["@nuxt/content"], - routeRules: { - '/': { prerender: true }, - '/api/**': { prerender: true } - }, content: { highlight: { theme: 'catppuccin-mocha', diff --git a/pages/[...slug].vue b/pages/[...slug].vue new file mode 100644 index 0000000..7c6f5e7 --- /dev/null +++ b/pages/[...slug].vue @@ -0,0 +1,8 @@ + +