feat: cms cache

This commit is contained in:
Linus Flood
2024-10-14 10:08:26 +02:00
parent 81ece30a0d
commit a91c8ed928
5 changed files with 57 additions and 14 deletions

View File

@@ -2,10 +2,6 @@ import { NextResponse } from "next/server"
import { bookingFlow } from "@/constants/routes/hotelReservation"
import { resolve as resolveEntry } from "@/utils/entry"
import { findLang } from "@/utils/languages"
import { removeTrailingSlash } from "@/utils/url"
import { getDefaultRequestHeaders } from "./utils"
import type { NextMiddleware } from "next/server"
@@ -13,8 +9,6 @@ import type { NextMiddleware } from "next/server"
import type { MiddlewareMatcher } from "@/types/middleware"
export const middleware: NextMiddleware = async (request) => {
const { nextUrl } = request
const headers = getDefaultRequestHeaders(request)
return NextResponse.next({
request: {