From ab1e92ae5410cf87d310a58d64b9362c8080102b Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Sun, 9 Mar 2025 14:25:46 +0100 Subject: [PATCH] chore: update Dockerfile and remove vite.config.js --- Dockerfile | 4 ++++ astro.config.mjs | 9 +-------- vite.config.js | 12 ------------ 3 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 vite.config.js diff --git a/Dockerfile b/Dockerfile index 17c6d1c..e93d4fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,5 +30,9 @@ RUN bun astro build # Expose the application port EXPOSE 4321 +ENV ASTRO_TELEMENTRY_DISABLED=1 +ENV __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=jleibl.net +ENV __VITE_ADDITIONAL_PREVIEW_ALLOWED_HOSTS=jleibl.net + # Start the Astro application CMD ["bun", "preview", "--host"] diff --git a/astro.config.mjs b/astro.config.mjs index 01c1965..728401a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -18,13 +18,6 @@ export default defineConfig({ ], vite: { - plugins: [tailwindcss()], - server: { - allowedHosts: 'jleibl.net' - }, - preview: { - allowedHosts: 'jleibl.net', - port: 4321 - } + plugins: [tailwindcss()] } }); \ No newline at end of file diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 9ecbbf6..0000000 --- a/vite.config.js +++ /dev/null @@ -1,12 +0,0 @@ -import { defineConfig } from 'vite' - -export default defineConfig({ - server: { - allowedHosts: 'jleibl.net', - port: 4321 - }, - preview: { - allowedHosts: 'jleibl.net', - port: 4321 - } -}) \ No newline at end of file