// @ts-check import { defineConfig } from 'astro/config'; import mdx from '@astrojs/mdx'; import react from '@astrojs/react'; import sitemap from '@astrojs/sitemap'; import node from '@astrojs/node'; // Pages are prerendered to static HTML by default. Anything that needs the // server (contact form, media proxy) opts out with `export const prerender = false`. export default defineConfig({ site: 'https://yoyos.sh', output: 'static', adapter: node({ mode: 'standalone' }), integrations: [mdx(), react(), sitemap()], prefetch: { prefetchAll: true, defaultStrategy: 'hover' }, security: { checkOrigin: true, // Coolify's proxy terminates TLS; trust its X-Forwarded-* headers for these hosts // so origin checks on the contact form see https://yoyos.sh. allowedDomains: [ { hostname: 'yoyos.sh', protocol: 'https' }, { hostname: 'www.yoyos.sh', protocol: 'https' }, ], }, });