From 775cf060f8e86d9ab8a94038feab7484a07971cb Mon Sep 17 00:00:00 2001 From: Daniel Svitan Date: Wed, 22 Oct 2025 17:52:45 +0200 Subject: [PATCH] :bug: Fixes redirecting takes seconds --- README.md | 2 ++ astro.config.mjs | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 72b1bfb..f811d3a 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,5 @@ My personal portfolio website, written in [Astro](https://astro.build/) ### License This project is licensed under the [GNU GPLv3](LICENSE) license + +TODO: please rewrite in an actually good framework like nuxt diff --git a/astro.config.mjs b/astro.config.mjs index 3cdc651..8cd3cb1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -14,8 +14,8 @@ export default defineConfig({ i18n: { locales: ["en", "sk", "de"], defaultLocale: "en", - routing: { - prefixDefaultLocale: true, - } - } + }, + redirects: { + "/": "/en/", + }, });