From 307785d01931f636bd976735e51bf0857d3a95b0 Mon Sep 17 00:00:00 2001 From: ndsboy Date: Fri, 14 Mar 2025 22:21:16 +0000 Subject: [PATCH] feat: use nginx redirects --- astro.config.ts | 3 --- nginx.conf | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index e9fef1e..826234e 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -13,9 +13,6 @@ export default defineConfig({ domains: ["directus.swablab.de", "files.mastodon.social"], service: passthroughImageService(), }, - redirects: { - "/todo": "https://directus.swablab.de/admin/content/tasks_general", - }, vite: { plugins: [ tailwindcss(), diff --git a/nginx.conf b/nginx.conf index dd6e790..4999c3d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,6 +17,9 @@ server { internal; } + location /todo { + return 301 https://directus.swablab.de/admin/content/tasks_general; + } location /discord { return 301 https://discord.gg/sZbmJdGkMQ; }