2024-06-22 01:34:37 +00:00
|
|
|
import { defineConfig, envField } from 'astro/config';
|
2024-06-21 06:41:45 +00:00
|
|
|
import node from "@astrojs/node";
|
|
|
|
import partytown from "@astrojs/partytown";
|
|
|
|
import sitemap from "@astrojs/sitemap";
|
|
|
|
import robotsTxt from "astro-robots-txt";
|
|
|
|
import vue from "@astrojs/vue";
|
|
|
|
import matomo from "astro-matomo";
|
2024-06-21 09:17:09 +00:00
|
|
|
import astroI18next from "astro-i18next";
|
|
|
|
|
2024-06-21 06:41:45 +00:00
|
|
|
export default defineConfig({
|
2024-06-22 01:34:37 +00:00
|
|
|
// Use Server-Side Rendering
|
2024-06-21 06:41:45 +00:00
|
|
|
output: "server",
|
|
|
|
adapter: node({
|
|
|
|
mode: "standalone"
|
|
|
|
}),
|
2024-06-22 01:34:37 +00:00
|
|
|
// Security
|
2024-06-21 06:41:45 +00:00
|
|
|
security: {
|
|
|
|
checkOrigin: true
|
|
|
|
},
|
2024-06-22 01:34:37 +00:00
|
|
|
// Server Options
|
2024-06-21 06:41:45 +00:00
|
|
|
server: {
|
|
|
|
port: 6003,
|
|
|
|
host: true
|
|
|
|
},
|
2024-06-22 01:34:37 +00:00
|
|
|
// Integrations and Plugins
|
2024-06-21 06:41:45 +00:00
|
|
|
integrations: [
|
2024-06-21 09:17:09 +00:00
|
|
|
astroI18next(),
|
2024-06-21 06:41:45 +00:00
|
|
|
partytown(),
|
|
|
|
sitemap(),
|
|
|
|
robotsTxt(),
|
|
|
|
vue(),
|
|
|
|
matomo({
|
|
|
|
enabled: import.meta.env.PROD, // Only run Matomo in production
|
|
|
|
host: "#",
|
|
|
|
setCookieDomain: "#",
|
|
|
|
trackerUrl: "js/", // Defaults to matomo.php
|
|
|
|
srcUrl: "js/", // Defaults to matomo.js
|
|
|
|
siteId: 143,
|
|
|
|
heartBeatTimer: 5,
|
|
|
|
disableCookies: true,
|
|
|
|
debug: false,
|
|
|
|
})
|
2024-06-22 01:34:37 +00:00
|
|
|
],
|
|
|
|
// Others
|
|
|
|
devToolbar: {enabled: false},
|
|
|
|
experimental: {
|
|
|
|
actions: true,
|
|
|
|
directRenderScript: true,
|
|
|
|
},
|
2024-06-21 06:41:45 +00:00
|
|
|
});
|