Updated middleware and next config
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import type { NextConfig } from "next"
|
import type { NextConfig } from "next"
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
output: "standalone",
|
output: process.env.DOCKER === "1" ? "standalone" : undefined,
|
||||||
eslint: {
|
eslint: {
|
||||||
ignoreDuringBuilds: true
|
ignoreDuringBuilds: true
|
||||||
},
|
},
|
||||||
|
|||||||
9
src/middleware.ts
Normal file
9
src/middleware.ts
Normal 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: "/(.*)"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user