update to ssr, include start command for nixpacks

This commit is contained in:
Jo 2025-11-01 21:00:13 +01:00
parent 134bf1cbac
commit 9f494b217b
Signed by: Charging1948
SSH key fingerprint: SHA256:UgRKet88v16waAaNniJLO13U6Pty7oITCkpya1slBes
2 changed files with 22 additions and 2 deletions

View file

@ -2,4 +2,23 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
// https://astro.build/config // https://astro.build/config
export default defineConfig({}); export default defineConfig({
output: 'server',
site: 'https://home.joachimkern.de',
adapter: node({
mode: "standalone"
}),
server:{
port: 3000,
host: true
},
vite:{
ssr: {
noExternal: ['path-to-regexp'],
},
preview: {
port: 3000,
host: true
}
}
});

View file

@ -5,6 +5,7 @@
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"build": "astro build", "build": "astro build",
"start": "node ./dist/server/entry.mjs",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"
}, },