Files
lanyu/astro.config.mjs
toom1996 633a764ec4 update
2025-08-18 17:42:07 +08:00

29 lines
561 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import node from '@astrojs/node';
// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone',
}),
build: {
format: 'file',
},
server: {
port:4324,
host: '0.0.0.0',
},
redirects: {
'/index': {
status: 301, // 永久重定向
destination: '/',
},
'/index.html': {
status: 301, // 永久重定向
destination: '/',
},
},
});