added backend reverse proxy to next to directly fetch data from client
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user