File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11// https://nuxt.com/docs/api/configuration/nuxt-config
22// @ts -nocheck — `.nuxt/schema/nuxt.schema.d.ts` can merge `NuxtConfig` as `{}` when only `appConfig` keys are customized; runtime config stays valid.
3+
4+ // Set early so nuxt-og-image resolves `nitro-prerender` compatibility instead of the unknown
5+ // `github-pages` preset (the preset applies `static: true` after some module hooks run).
6+ const isGithubPagesDeploy = process . env . DEPLOY_TARGET === 'github-pages' ;
7+
38export default defineNuxtConfig ( {
49 modules : [
510 '@nuxt/image' ,
@@ -59,6 +64,7 @@ export default defineNuxtConfig({
5964 compatibilityDate : '2025-10-01' ,
6065
6166 nitro : {
67+ ...( isGithubPagesDeploy ? { static : true } : { } ) ,
6268 prerender : {
6369 // Seed docs so the crawler can follow sidebar/nav links to every page.
6470 routes : [ '/' , '/docs/getting-started' ] ,
You can’t perform that action at this time.
0 commit comments