Remove Netlify adapter from Astro configuration and clean up translations by deleting unused sections for blog and Anti-Fingerprinting Shield Plus. This streamlines the project and improves maintainability.

This commit is contained in:
becarta
2025-05-14 00:19:56 +02:00
parent 8a54efb68d
commit 93e66eb5df
7 changed files with 865 additions and 160 deletions

10
src/middleware.ts Normal file
View File

@@ -0,0 +1,10 @@
import { defineMiddleware } from 'astro:middleware';
export const onRequest = defineMiddleware(async (context, next) => {
// Only redirect if we're at the root path
if (context.url.pathname === '/') {
return context.redirect('/en', 301);
}
return next();
});