Skip to content

Commit

Permalink
docs: update nuxt-og-image and add postinstall script (#2705)
Browse files Browse the repository at this point in the history
* docs: improve deps

* up

* up

* try without the resolution

* up
  • Loading branch information
benjamincanac authored Jul 11, 2024
1 parent 669cc57 commit ee3c7e6
Show file tree
Hide file tree
Showing 4 changed files with 1,116 additions and 377 deletions.
File renamed without changes.
15 changes: 11 additions & 4 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default defineNuxtConfig({
extends: '@nuxt/ui-pro',
extends: ['@nuxt/ui-pro'],
devtools: { enabled: true },

routeRules: {
Expand Down Expand Up @@ -49,26 +49,31 @@ export default defineNuxtConfig({
// Prevent prerendering of partials, due to nuxt-og-image issue with prerendering
'/_partials/**': { prerender: false }
},

nitro: {
prerender: {
routes: [
'/',
'/api/search.json'
]
}
},

modules: [
'@nuxt/content',
'@nuxt/fonts',
'@nuxt/image',
'@nuxt/ui',
'@nuxthq/studio',
'@nuxtjs/plausible',
'@vueuse/nuxt',
'nuxt-og-image',
'@nuxtjs/plausible'
'nuxt-og-image'
],

colorMode: {
preference: 'dark'
},

ui: {
icons: ['heroicons', 'simple-icons', 'ph']
},
Expand All @@ -82,5 +87,7 @@ export default defineNuxtConfig({
if (comp.global) { comp.global = 'sync' }
}
}
}
},

compatibilityDate: '2024-07-11'
})
17 changes: 7 additions & 10 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
"preview": "nuxi preview",
"generate": "nuxi generate"
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@iconify-json/ph": "^1.1.13",
"@iconify-json/simple-icons": "^1.1.109",
"@nuxt/content": "^2.13.1",
"@nuxt/fonts": "^0.7.1",
"@nuxt/image": "^1.7.0",
"@nuxt/ui-pro": "^1.3.1",
"@nuxthq/studio": "^2.0.3",
"@nuxtjs/fontaine": "^0.4.3",
"@nuxtjs/google-fonts": "^3.2.0",
"@nuxtjs/plausible": "^1.0.0",
"@vueuse/core": "^10.11.0",
"@vueuse/nuxt": "^10.11.0",
"nuxt": "^3.12.3",
"nuxt-og-image": "^2.2.6"
},
"devDependencies": {
"@nuxt/devtools": "^1.3.9"
"nuxt-og-image": "^3.0.0-rc.59"
}
}
Loading

0 comments on commit ee3c7e6

Please sign in to comment.