2026-08-25 12:08:01 +02:00
|
|
|
import { SITE_NAME } from './shared/utils/site'
|
|
|
|
|
|
2026-08-25 11:42:17 +02:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
|
compatibilityDate: '2025-07-15',
|
|
|
|
|
devtools: { enabled: true },
|
|
|
|
|
|
|
|
|
|
css: ['~/assets/css/main.css'],
|
|
|
|
|
|
2026-09-11 13:52:13 +02:00
|
|
|
// Default auto-import prefixes nested component dirs with their path
|
|
|
|
|
// (e.g. `components/views/HomeView.vue` -> `<ViewsHomeView>`) — disabled so
|
|
|
|
|
// the it/en thin page wrappers can reference `<HomeView>` etc. directly.
|
|
|
|
|
components: [{ path: '~/components', pathPrefix: false }],
|
|
|
|
|
|
2026-08-25 11:42:17 +02:00
|
|
|
app: {
|
|
|
|
|
head: {
|
2026-08-26 09:39:05 +02:00
|
|
|
htmlAttrs: { lang: 'it' },
|
2026-08-25 12:08:01 +02:00
|
|
|
titleTemplate: `%s · ${SITE_NAME}`,
|
2026-08-25 11:42:17 +02:00
|
|
|
meta: [{ name: 'viewport', content: 'width=device-width, initial-scale=1' }],
|
2026-08-25 13:25:13 +02:00
|
|
|
link: [
|
2026-08-25 13:31:27 +02:00
|
|
|
{ rel: 'icon', href: '/favicon.ico', sizes: '16x16 32x32 48x48 64x64' },
|
2026-08-25 13:25:13 +02:00
|
|
|
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' },
|
|
|
|
|
],
|
2026-08-25 11:42:17 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
runtimeConfig: {
|
2026-09-11 11:25:14 +02:00
|
|
|
// Server-only: internal PocketBase address, never exposed to the browser.
|
|
|
|
|
pocketbaseUrl: 'http://localhost:8090',
|
2026-08-25 11:42:17 +02:00
|
|
|
public: {
|
|
|
|
|
// Canonical origin of the public website.
|
|
|
|
|
siteUrl: 'http://localhost:3000',
|
2026-09-11 11:25:14 +02:00
|
|
|
// Browser-reachable PocketBase origin, used to build absolute media URLs.
|
|
|
|
|
pocketbaseUrl: 'http://localhost:8090',
|
2026-08-25 11:42:17 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
typescript: {
|
|
|
|
|
strict: true,
|
|
|
|
|
},
|
2026-09-11 11:25:34 +02:00
|
|
|
|
|
|
|
|
modules: ['@nuxt/eslint'],
|
2026-09-11 11:25:14 +02:00
|
|
|
})
|