chore: scaffold astro frontend with static output

This commit is contained in:
devilreef 2026-04-30 09:23:32 +06:00
parent 6bec95a563
commit f1a0d1ddef
Signed by: devilreef
SSH key fingerprint: SHA256:UZisRr4iuXx+IhkbZnR655L2RWAT6o2rgbGv5F/6m3Y
8 changed files with 10277 additions and 0 deletions

19
frontend/astro.config.mjs Normal file
View file

@ -0,0 +1,19 @@
// @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 } },
},
});