chore: update Dockerfile and remove vite.config.js

This commit is contained in:
2025-03-09 14:25:46 +01:00
parent fc90fcdff5
commit ab1e92ae54
3 changed files with 5 additions and 20 deletions

View File

@ -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"]

View File

@ -18,13 +18,6 @@ export default defineConfig({
],
vite: {
plugins: [tailwindcss()],
server: {
allowedHosts: 'jleibl.net'
},
preview: {
allowedHosts: 'jleibl.net',
port: 4321
}
plugins: [tailwindcss()]
}
});

View File

@ -1,12 +0,0 @@
import { defineConfig } from 'vite'
export default defineConfig({
server: {
allowedHosts: 'jleibl.net',
port: 4321
},
preview: {
allowedHosts: 'jleibl.net',
port: 4321
}
})