mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-10 16:04:55 +00:00
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.
24 lines
658 B
JavaScript
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'],
|
|
},
|
|
},
|
|
});
|