// @ts-check import { defineConfig } from 'astro/config'; import tailwindcss from '@tailwindcss/vite'; import node from '@astrojs/node'; // https://astro.build/config export default defineConfig({ vite: { plugins: [tailwindcss()], server: { // Lets us test host-based behavior (hhonig.de vs. place4bees.com) locally // by sending a custom Host header against the dev server. allowedHosts: ['hhonig.de', 'place4bees.com', 'shop.hhonig.de'], // Produktbilder stehen in der Datenbank als /static/… ohne Domain, damit // sie in jeder Umgebung stimmen. Im Betrieb löst der Reverse Proxy das // auf; hier in der Entwicklung übernimmt das dieser Eintrag. proxy: { '/static': 'http://localhost:9001' } } }, adapter: node({ mode: 'standalone' }) });