Astro config, dodanie hosta ze zmiennych, kopiowanie yamli i public olderu

This commit is contained in:
dm
2025-11-20 22:38:30 +01:00
parent be5860d885
commit ee3248af42
2 changed files with 6 additions and 2 deletions

View File

@@ -22,6 +22,10 @@ COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/node_modules ./node_modules
COPY package*.json ./ COPY package*.json ./
# YAML + public (runtime needed!)
COPY --from=builder /app/src/content ./src/content
COPY --from=builder /app/public ./public
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=4321 ENV PORT=4321

View File

@@ -8,8 +8,8 @@ export default defineConfig({
mode: "standalone" mode: "standalone"
}), }),
server: { server: {
host: true, host: process.env.HOST || '0.0.0.0',
port: 4321, port: parseInt(process.env.PORT || '4321'),
}, },
integrations: [ integrations: [
tailwind({ tailwind({