Astro config, dodanie hosta ze zmiennych, kopiowanie yamli i public olderu
This commit is contained in:
@@ -22,6 +22,10 @@ COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
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 PORT=4321
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ export default defineConfig({
|
||||
mode: "standalone"
|
||||
}),
|
||||
server: {
|
||||
host: true,
|
||||
port: 4321,
|
||||
host: process.env.HOST || '0.0.0.0',
|
||||
port: parseInt(process.env.PORT || '4321'),
|
||||
},
|
||||
integrations: [
|
||||
tailwind({
|
||||
|
||||
Reference in New Issue
Block a user