79 lines
1.6 KiB
TypeScript
79 lines
1.6 KiB
TypeScript
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-07-15',
|
|
devtools: { enabled: true },
|
|
modules: [
|
|
'@nuxt/icon',
|
|
'@nuxt/image',
|
|
'@nuxt/fonts',
|
|
'@nuxtjs/sitemap',
|
|
'@nuxtjs/robots',
|
|
'@vite-pwa/nuxt'
|
|
],
|
|
|
|
ssr: true,
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
url: 'http://localhost:3000',
|
|
api: 'http://localhost:5555',
|
|
}
|
|
},
|
|
|
|
site: {
|
|
url: 'https://visione.studentindipendenti.it',
|
|
name: 'Visione - Un\'occhio per la sicurezza del cittadino.',
|
|
},
|
|
|
|
css: [
|
|
'leaflet/dist/leaflet.css',
|
|
'bootstrap-italia/dist/css/bootstrap-italia.min.css',
|
|
'@/assets/css/style.css'
|
|
],
|
|
|
|
fonts: {
|
|
families: [
|
|
{ name: 'Lora', provider: 'google' },
|
|
{ name: 'Roboto Mono', provider: 'google' },
|
|
{ name: 'Titillium Web', provider: 'google' }
|
|
]
|
|
},
|
|
|
|
app: {
|
|
head: {
|
|
link: [
|
|
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' }
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
pwa: {
|
|
registerType: 'autoUpdate',
|
|
manifest: {
|
|
name: 'Visione - Un\'occhio per la sicurezza',
|
|
short_name: 'Visione',
|
|
theme_color: '#003366',
|
|
background_color: '#003366',
|
|
display: 'standalone',
|
|
orientation: 'portrait',
|
|
icons: [
|
|
{
|
|
src: '/icon-192.webp',
|
|
sizes: '192x192',
|
|
type: 'image/webp',
|
|
purpose: 'any'
|
|
},
|
|
{
|
|
src: '/icon-512.webp',
|
|
sizes: '512x512',
|
|
type: 'image/webp',
|
|
purpose: 'any'
|
|
}
|
|
]
|
|
},
|
|
workbox: {
|
|
globPatterns: ['**/*.{js,css,html,png,svg,ico,webp}']
|
|
}
|
|
}
|
|
})
|