Updated middleware and next config

This commit is contained in:
2025-09-06 23:19:11 +02:00
parent e604294208
commit 9247c88be0
2 changed files with 10 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import type { NextConfig } from "next"
const nextConfig: NextConfig = {
output: "standalone",
output: process.env.DOCKER === "1" ? "standalone" : undefined,
eslint: {
ignoreDuringBuilds: true
},

9
src/middleware.ts Normal file
View File

@@ -0,0 +1,9 @@
import { NextRequest } from "next/server"
export async function middleware(req: NextRequest) {
console.log(`[Middleware] ${req.method} ${req.nextUrl.pathname}`)
}
export const config = {
matcher: "/(.*)"
}