From c9d4ddb86164cea64f51447255ceed311f42203a Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Tue, 1 Jul 2025 10:25:06 +0800 Subject: [PATCH] Added prefetch --- astro.config.mjs | 2 +- src/components/Navbar/Navbar.tsx | 2 +- src/pages/index.astro | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 5e6b791..8790f65 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,7 +8,7 @@ import robotsTxt from 'astro-robots-txt' export default defineConfig({ site: 'https://tools.patalcala.com', integrations: [solidJs(), compressor({ gzip: false, brotli: true }), robotsTxt()], - + prefetch: true, build: { assets: '_aiotools', }, diff --git a/src/components/Navbar/Navbar.tsx b/src/components/Navbar/Navbar.tsx index 76548a9..1e4d691 100644 --- a/src/components/Navbar/Navbar.tsx +++ b/src/components/Navbar/Navbar.tsx @@ -23,7 +23,7 @@ export default () => { - + diff --git a/src/pages/index.astro b/src/pages/index.astro index 87b393a..daa8557 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -18,10 +18,10 @@ import { Image } from 'astro:assets'
- - - - + + + +