mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-19 01:07:39 +00:00
feat: added nuxt content
This commit is contained in:
@@ -2,11 +2,33 @@
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2026-04-28',
|
||||
devtools: { enabled: true },
|
||||
|
||||
nitro: {
|
||||
prerender: {
|
||||
autoSubfolderIndex: false,
|
||||
},
|
||||
preset: 'cloudflare_module',
|
||||
cloudflare: {
|
||||
deployConfig: true,
|
||||
wrangler: {
|
||||
d1_databases: [
|
||||
{
|
||||
binding: 'DB',
|
||||
database_name: 'folio',
|
||||
database_id: '6fd8a531-a673-479a-9501-3b406bb9f76e',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
content: {
|
||||
database: {
|
||||
type: 'd1',
|
||||
bindingName: 'DB',
|
||||
},
|
||||
},
|
||||
|
||||
app: {
|
||||
head: {
|
||||
htmlAttrs: { lang: 'en' },
|
||||
@@ -22,4 +44,6 @@ export default defineNuxtConfig({
|
||||
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }],
|
||||
},
|
||||
},
|
||||
|
||||
modules: ['@nuxt/content'],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user