aboutsummaryrefslogtreecommitdiffhomepage
path: root/astro.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'astro.config.mjs')
-rw-r--r--astro.config.mjs7
1 files changed, 7 insertions, 0 deletions
diff --git a/astro.config.mjs b/astro.config.mjs
index 03c5b9e..6b6406b 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -87,6 +87,13 @@ export default defineConfig({
base: "/",
trailingSlash: "always",
compressHTML: true,
+ // 旧URLからの転送。本番は .htaccess が301で返すが、astro dev / preview では
+ // .htaccess が効かないため、ここでも同じ転送を定義しておく。
+ redirects: {
+ "/kodaira-data/hp-archive/schedule": "/kodaira/events/",
+ "/kodaira-data/schedule": "/kodaira/events/",
+ "/kodaira-data/events": "/kodaira/events/",
+ },
image: {
layout: "constrained",
responsiveStyles: true,