Files
warmbly/site/astro.config.mjs
T
Matthew Meszaros 8b28b86b7f feat: support exposed local dev hosts
Add PUBLIC_HOST wiring for local web, admin, site, realtime, and backend CORS so the native dev stack can be reached over Tailscale or LAN without changing localhost defaults.
2026-06-01 05:51:02 +02:00

24 lines
658 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import sitemap from '@astrojs/sitemap';
// https://astro.build/config
export default defineConfig({
site: 'https://warmbly.com',
integrations: [
sitemap({
// The 404 page is noindex and should never appear in the sitemap.
filter: (page) => !page.includes('/404'),
}),
],
vite: {
plugins: [tailwindcss()],
server: {
// Allow Tailscale MagicDNS names when `make site PUBLIC_HOST=…` exposes
// the dev server with --host. IPs + localhost are always allowed.
allowedHosts: ['.ts.net'],
},
},
});