feat: add astro ssr
This commit is contained in:
20
astro-ssr/astro.config.mjs
Normal file
20
astro-ssr/astro.config.mjs
Normal file
@@ -0,0 +1,20 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
import node from "@astrojs/node";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
output: 'server',
|
||||
site: 'https://example.com',
|
||||
adapter: node({
|
||||
mode: "standalone"
|
||||
}),
|
||||
server:{
|
||||
port: 3000,
|
||||
host: true
|
||||
},
|
||||
vite:{
|
||||
ssr: {
|
||||
noExternal: ['path-to-regexp'],
|
||||
},
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user