2026-02-18 03:06:14 +01:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
|
export default defineNuxtConfig({
|
2026-02-23 19:57:24 +01:00
|
|
|
runtimeConfig: {
|
|
|
|
|
adminPassword: process.env.PASSWORD
|
|
|
|
|
},
|
2026-02-18 17:34:37 +01:00
|
|
|
modules: ['@nuxtjs/tailwindcss', '@nuxt/image', '@nuxt/icon', '@pinia/nuxt', 'nuxt-headlessui', 'nuxt-swiper', 'nuxt-umami'],
|
2026-02-18 03:06:14 +01:00
|
|
|
image: {
|
|
|
|
|
domains: ['unboundedpress.org']
|
|
|
|
|
},
|
|
|
|
|
app: {
|
|
|
|
|
//baseURL: "/dev/",
|
|
|
|
|
pageTransition: { name: 'page', mode: 'out-in' },
|
|
|
|
|
head: {
|
|
|
|
|
viewport: 'width=device-width'
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
appConfig: {
|
|
|
|
|
umami: {
|
|
|
|
|
id: '51f4f246-9c2e-4a86-9ffb-7a7967d9013d',
|
|
|
|
|
host: 'https://cloud.umami.is/',
|
|
|
|
|
version: 2
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
routeRules: {
|
|
|
|
|
'/hdp': { redirect: '/a_history_of_the_domino_problem' },
|
2026-02-27 09:15:37 +01:00
|
|
|
|
|
|
|
|
// Default: prerender all routes (static HTML)
|
|
|
|
|
'/**': { prerender: true },
|
|
|
|
|
|
|
|
|
|
// Exceptions: admin needs SSR (dynamic), API needs CORS
|
|
|
|
|
'/admin': { ssr: true },
|
|
|
|
|
'/api/**': { cors: true },
|
2026-02-18 03:06:14 +01:00
|
|
|
},
|
|
|
|
|
nitro: {
|
|
|
|
|
prerender: { crawlLinks: true}
|
|
|
|
|
},
|
|
|
|
|
experimental: {
|
|
|
|
|
payloadExtraction: true
|
2026-02-18 22:05:02 +01:00
|
|
|
}
|
2026-02-18 03:06:14 +01:00
|
|
|
})
|