From 72f2f1c07de50b2db6089534f82f2bbcc6345120 Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Sun, 9 Mar 2025 14:31:57 +0100 Subject: [PATCH] feat: update port configuration for Astro application --- Dockerfile | 2 +- astro.config.mjs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e93d4fc..0e67283 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,4 @@ ENV __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=jleibl.net ENV __VITE_ADDITIONAL_PREVIEW_ALLOWED_HOSTS=jleibl.net # Start the Astro application -CMD ["bun", "preview", "--host"] +CMD ["bun", "preview", "--port", "4321"] diff --git a/astro.config.mjs b/astro.config.mjs index 728401a..6f753cd 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -18,6 +18,12 @@ export default defineConfig({ ], vite: { - plugins: [tailwindcss()] + plugins: [tailwindcss()], + server: { + port: 4321 + }, + preview: { + port: 4321 + } } }); \ No newline at end of file