From f552859dc05b87b9b4270ab5e30dfbd98937e082 Mon Sep 17 00:00:00 2001 From: toom1996 Date: Thu, 17 Jul 2025 11:51:35 +0800 Subject: [PATCH] update --- astro.config.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index f5dd113..011da59 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -14,4 +14,14 @@ export default defineConfig({ port:4322, host: '0.0.0.0', }, + redirects: { + '/index': { + status: 301, // 永久重定向 + destination: '/', + }, + '/index.html': { + status: 301, // 永久重定向 + destination: '/', + }, + }, });