Files
frontend/nuxt.config.ts
2026-06-19 16:06:43 +02:00

87 lines
2.0 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: {
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0' },
{ name: 'theme-color', content: '#003366' },
{ name: 'description', content: 'Visione - Un\'occhio per la sicurezza' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
{ name: 'apple-mobile-web-app-title', content: 'Visione' }
],
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}']
}
}
})