Files
2026-11-18 02:18:54 +01:00

28 lines
767 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import { LOCALES, DEFAULT_LOCALE } from './src/i18n/locales.ts';
export default defineConfig({
site: process.env.SITE_URL || 'https://proton-gallery.narl.io',
trailingSlash: 'always',
build: {
// Everything goes into files under /_astro/ so the CSP can stay at 'self'
// without hashes or 'unsafe-inline'.
inlineStylesheets: 'never',
},
vite: {
build: { assetsInlineLimit: 0 },
},
integrations: [
sitemap({
filter: (page) => !/\/(impressum|datenschutz)\/$/.test(page),
i18n: {
defaultLocale: DEFAULT_LOCALE,
locales: Object.fromEntries(LOCALES.map((l) => [l.code, l.hreflang])),
},
}),
],
});