From 1cae9689c5c5c70b0026cc5f41ff1ae2b2d35e21 Mon Sep 17 00:00:00 2001 From: mustafa-rezae Date: Thu, 6 Mar 2025 16:31:07 +0330 Subject: [PATCH] Update nuxt.config --- nuxt.config.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 2d18cb0..b8cf906 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -154,6 +154,9 @@ export default defineNuxtConfig({ nitro: { compressPublicAssets: true, + prerender: { + routes: ["/haditha/about-us", "/haditha/contact"], // Pre-render these routes + }, }, colorMode: { @@ -200,7 +203,10 @@ export default defineNuxtConfig({ customCollections: [ { prefix: "haditha", - dir: `./systems/${buildName}_ui/assets/${buildName}/font-icons`, + dir: `./systems/${buildName.substring( + 0, + buildName.length - 1 + )}_ui/assets/${buildName}/font-icons`, }, ], }, @@ -288,6 +294,10 @@ export default defineNuxtConfig({ }, }, }, + build: { + analyze: true, + // transpile: ["echarts", "resize-detector", "echarts-wordcloud"], + }, // postcss: { // plugins: { // tailwindcss: {},