19 lines
570 B
JavaScript
19 lines
570 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import node from '@astrojs/node';
|
|
import react from '@astrojs/react';
|
|
|
|
// astro 5 merged 'hybrid' into 'static' + per-route `export const prerender = false`.
|
|
// the node adapter is required so api endpoints can actually run on demand.
|
|
export default defineConfig({
|
|
output: 'static',
|
|
adapter: node({ mode: 'standalone' }),
|
|
integrations: [react()],
|
|
server: {
|
|
host: process.env.HOST || '0.0.0.0',
|
|
port: Number(process.env.PORT) || 3000,
|
|
},
|
|
vite: {
|
|
server: { fs: { strict: true } },
|
|
},
|
|
});
|