mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-11-01 00:53:23 +01:00
build(deps): update to Next.js v16 + use image digests instead of tags
Ref: - https://docs.docker.com/dhi/core-concepts/digests/ - https://github.com/goldbergyoni/nodebestpractices/blob/master/sections/docker/image-tags.md - https://emmer.dev/blog/what-is-a-docker-digest/
This commit is contained in:
26
apps/website/proxy.ts
Normal file
26
apps/website/proxy.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { routing } from "@repo/i18n/routing"
|
||||
import createIntlMiddleware from "next-intl/middleware"
|
||||
|
||||
const intlMiddleware = createIntlMiddleware(routing)
|
||||
|
||||
export default intlMiddleware
|
||||
|
||||
export const config = {
|
||||
matcher: [
|
||||
// Enable a redirect to a matching locale at the root
|
||||
"/",
|
||||
|
||||
// Next.js issue, middleware matcher should support template literals:
|
||||
// https://github.com/vercel/next.js/issues/56398
|
||||
"/(en-US|fr-FR)/:path*",
|
||||
|
||||
/*
|
||||
* Match all request paths except for the ones starting with:
|
||||
* - api (API routes)
|
||||
* - _next/static (static files)
|
||||
* - _next/image (image optimization files)
|
||||
* - favicon.ico (favicon file)
|
||||
*/
|
||||
"/((?!api|_next/static|_next/image|images|favicon.ico|robots.txt).*)",
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user