Files
yoyos.sh/astro.config.mjs
Johan Sandoval ef9d597b52
Mirror to Gitea / mirror (push) Skipped
Redesign with per-page themes and plain wording
Each page now has its own look drawn from print and retro-tech references:
magazine-cover home, subway-map work index, technical-poster project pages,
90s-desktop blog, radio-flyer music page, 80s wireframe 3D page, garden
about page and postcard contact form. A shared subway-line color system
ties sections and project categories together.

Replace themed copy with standard wording (Work, Blog, Music, 3D, About,
Contact; Selected work, Experience, Get in touch). Rename /log to /blog and
/sound to /music with redirects.
2026-10-08 15:36:51 +00:00

31 lines
1.0 KiB
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()],
redirects: {
'/log': '/blog',
'/log/[...slug]': '/blog/[...slug]',
'/sound': '/music',
},
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' },
],
},
});