Files
lanyu/astro.config.mjs
toom1996 47b5625128 update
2025-08-18 17:34:33 +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:4323,
host: '0.0.0.0',
},
redirects: {
'/index': {
status: 301, // 永久重定向
destination: '/',
},
'/index.html': {
status: 301, // 永久重定向
destination: '/',
},
},
});