Try Bun adapter and enable a couple of experimental features

This commit is contained in:
Korbs 2024-08-10 20:10:00 -04:00
parent 0bf467c3a4
commit 709592a9d7

View file

@ -3,6 +3,8 @@ import node from '@astrojs/node'
import vue from '@astrojs/vue'
import astroI18next from "astro-i18next"
import mdx from '@astrojs/mdx'
import bun from "@nurodev/astro-bun";
// https://astro.build/config
export default defineConfig({
@ -25,15 +27,22 @@ export default defineConfig({
},
// Use Server-Side Rendering
output: 'server',
adapter: node({
mode: 'standalone'
}),
adapter: bun(),
// Vite
vite: {
server: {
hmr: true // Auto Reload
}
},
// Experimental
experimental: {
directRenderScript: true,
clientPrerender: true
},
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport"
},
// Others
devToolbar: {
enabled: false