Skip to content

Commit

Permalink
UPDATE DEP + FIX GENERATE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Zamani committed Jul 29, 2024
1 parent 2667e0b commit cf7bf4f
Show file tree
Hide file tree
Showing 35 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ useHead({

<Body class="dark:bg-slate-800">
<NuxtLayout>
<SeoKit />
<!-- <SeoKit /> -->
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
Expand Down
21 changes: 16 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import { GenerateDecap } from "./tools/configs-generators";
export default defineNuxtConfig({
ssr: true,
css: ["@/assets/scss/base.scss", "@/assets/scss/extra.scss"],

modules: [
"@nuxt/ui",
"@nuxt/content",
"nuxt-gtag",
"@nuxt/image",
"@nuxtjs/i18n",
],

// extends: ["nuxt-seo-kit"],
runtimeConfig: {
app: {
Expand Down Expand Up @@ -46,9 +48,11 @@ export default defineNuxtConfig({
language: process.env.SITE_LANGUAGE,
},
},

app: {
pageTransition: { name: "page", mode: "in-out" },
},

vite: {
plugins: [
viteCompression({ algorithm: "brotliCompress" }),
Expand All @@ -74,20 +78,21 @@ export default defineNuxtConfig({
compressPublicAssets: true,
minify: true,
prerender: {
crawlLinks: false,
crawlLinks: true,
routes: GenerateRoutes(["notes", "pages", "category"]),
},
},

experimental: {
payloadExtraction: false,
treeshakeClientOnly: false,
inlineSSRStyles: false,
},
image: {
dir: "assets/content",

format: ["webp"],
},
// image: {
// dir: "assets/content",
// },

hooks: {
"build:done": () => {
GenerateDecap();
Expand All @@ -96,15 +101,21 @@ export default defineNuxtConfig({
GenerateDecap();
},
},

gtag: {
id: "G-78646PGVN1",
},

content: {
highlight: {
theme: "github-dark",
preload: ["ts", "js", "css", "json", "go"],
},
},

i18n: {
vueI18n: "./i18n.config.ts", // if you are using custom path, default
},

compatibilityDate: "2024-07-29",
});
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
},
"dependencies": {
"@giscus/vue": "^3.0.0",
"@iconify-json/heroicons": "^1.1.23",
"@iconify-json/uil": "^1.1.8",
"moment-jalaali": "^0.10.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240725.0",
"@iconify/json": "^2.2.232",
"@nuxt/content": "^2.13.2",
"@nuxt/devtools": "^1.3.9",
"@nuxt/image": "^1.7.0",
"@nuxt/image": "npm:@nuxt/image-nightly@latest",
"@nuxt/ui": "^2.18.2",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/i18n": "^8.3.3",
Expand All @@ -42,4 +43,4 @@
"unplugin-vue-components": "^0.27.3",
"vite-plugin-compression": "^0.5.1"
}
}
}
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit cf7bf4f

Please sign in to comment.