fix: remove legacy /admin bypass from middleware to ensure proper 404
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Successful in 1m10s
Build & Deploy / 🏗️ Build (push) Successful in 2m38s
Build & Deploy / 🚀 Deploy (push) Successful in 13s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 51s
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-05-06 17:53:40 +02:00
parent 04fb328850
commit 071fba540d
2 changed files with 1 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ export default async function middleware(request: NextRequest) {
if (
isServerAction ||
pathname.startsWith('/admin') ||
pathname.startsWith('/api') ||
pathname.startsWith('/stats') ||
pathname.startsWith('/errors') ||

View File

@@ -113,7 +113,7 @@
"prepare": "husky",
"preinstall": "npx only-allow pnpm"
},
"version": "2.3.22-rc.18",
"version": "2.3.22-rc.19",
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",