import { defineConfig } from 'astro/config'; import tailwind from '@astrojs/tailwind'; 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: false, redirectToDefaultLocale: false } }, integrations: [ tailwind(), ], output: 'static', build: { inlineStylesheets: 'auto', }, 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') } }, resolve: { alias: { '@config': '/src/site.config.ts', '@': '/src' } } } });