full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,48 +1,20 @@
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import astroI18next from 'astro-i18next';
import fs from 'fs'; // Import fs for reading certs
// https://astro.build/config
export default defineConfig({
site: 'https://tiber365.it',
i18n: {
defaultLocale: 'en',
locales: ['en', 'nl', 'de', 'fr'],
routing: {
prefixDefaultLocale: true,
redirectToDefaultLocale: false
}
},
integrations: [
tailwind(),
astroI18next({
defaultLocale: "en",
locales: ["en", "nl", "it"],
i18next: {
debug: true,
initImmediate: false,
supportedLngs: ["en", "nl", "it"],
fallbackLng: "en",
load: "all"
},
i18nextPlugins: { fsBackend: 'i18next-fs-backend' },
showDefaultLocale: true,
routes: {
en: {
about: 'about',
services: 'services',
contact: 'contact',
privacy: 'privacy',
terms: 'terms'
},
nl: {
about: 'over-ons',
services: 'diensten',
contact: 'contact',
privacy: 'privacy',
terms: 'voorwaarden'
},
it: {
about: 'chi-siamo',
services: 'servizi',
contact: 'contatti',
privacy: 'privacy',
terms: 'termini'
}
}
}),
],
output: 'static',
build: {
@@ -51,6 +23,24 @@ export default defineConfig({
vite: {
optimizeDeps: {
exclude: ['astro:content']
},
build: {
cssMinify: true,
minify: 'terser',
rollupOptions: {
output: {
manualChunks: {
'vendor': ['astro']
}
}
}
},
server: {
port: 4321,
https: {
key: fs.readFileSync('./localhost-key.pem'),
cert: fs.readFileSync('./localhost.pem')
}
}
}
});
});