Mirror to Gitea / mirror (push) Skipped
Astro + React islands + MDX with a theme system (terminal, concrete, nostromo, overgrowth), USMT Dash case study, work/log/sound/models/about/ contact pages, RSS, self-hosted contact form over SMTP, /media proxy to Nextcloud, Dockerfile for Coolify, and a GitHub Action that mirrors main to Gitea.
26 lines
922 B
JavaScript
26 lines
922 B
JavaScript
// @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' },
|
|
],
|
|
},
|
|
});
|