Try Bun adapter and enable a couple of experimental features
This commit is contained in:
parent
0bf467c3a4
commit
709592a9d7
1 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue