added backend reverse proxy to next to directly fetch data from client

This commit is contained in:
2025-01-01 10:28:26 +00:00
parent e06753fb24
commit cf3c34fb2f
3 changed files with 38 additions and 25 deletions
+12 -12
View File
@@ -1,20 +1,20 @@
import {createNavigation} from 'next-intl/navigation';
import {defineRouting} from 'next-intl/routing';
import { createNavigation } from "next-intl/navigation";
import { defineRouting } from "next-intl/routing";
export const routing = defineRouting({
locales: ['en', 'de'],
defaultLocale: 'en',
locales: ["en", "de"],
defaultLocale: "en",
pathnames: {
'/': '/',
'/pathnames': {
en: '/pathnames',
de: '/pfadnamen'
}
}
"/": "/",
"/pathnames": {
en: "/pathnames",
de: "/pfadnamen",
},
},
});
export type Pathnames = keyof typeof routing.pathnames;
export type Locale = (typeof routing.locales)[number];
export const {Link, getPathname, redirect, usePathname, useRouter} =
createNavigation(routing);
export const { Link, getPathname, redirect, usePathname, useRouter } =
createNavigation(routing);