chore: update Dockerfile and remove vite.config.js
This commit is contained in:
@ -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"]
|
||||
|
@ -18,13 +18,6 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
server: {
|
||||
allowedHosts: 'jleibl.net'
|
||||
},
|
||||
preview: {
|
||||
allowedHosts: 'jleibl.net',
|
||||
port: 4321
|
||||
}
|
||||
plugins: [tailwindcss()]
|
||||
}
|
||||
});
|
@ -1,12 +0,0 @@
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
allowedHosts: 'jleibl.net',
|
||||
port: 4321
|
||||
},
|
||||
preview: {
|
||||
allowedHosts: 'jleibl.net',
|
||||
port: 4321
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user