1
0
Fork 0
This repository has been archived on 2024-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
poke-on-astro-experiment/astro.config.mjs
2024-06-21 21:34:37 -04:00

50 lines
1.1 KiB
JavaScript

import { defineConfig, envField } from 'astro/config';
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";
import astroI18next from "astro-i18next";
export default defineConfig({
// Use Server-Side Rendering
output: "server",
adapter: node({
mode: "standalone"
}),
// Security
security: {
checkOrigin: true
},
// Server Options
server: {
port: 6003,
host: true
},
// Integrations and Plugins
integrations: [
astroI18next(),
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,
})
],
// Others
devToolbar: {enabled: false},
experimental: {
actions: true,
directRenderScript: true,
},
});