From 709592a9d7d4a1d7c7a8ed26eb0d14a3ca305c6b Mon Sep 17 00:00:00 2001 From: Korbs Date: Sat, 10 Aug 2024 20:10:00 -0400 Subject: [PATCH] Try Bun adapter and enable a couple of experimental features --- source/astro.mjs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/source/astro.mjs b/source/astro.mjs index 31440e7..b0fa006 100755 --- a/source/astro.mjs +++ b/source/astro.mjs @@ -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