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