Merge branch 'release/v1.26.12'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard"
|
||||
NEXT_PUBLIC_API_VERSION = "1.26.10"
|
||||
NEXT_PUBLIC_API_VERSION = "1.26.12"
|
||||
NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa"
|
||||
NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl"
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,13 +1,10 @@
|
||||
import {parse} from "next-useragent";
|
||||
import process from "next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss";
|
||||
|
||||
export const globalServerProps = async ({req, locale}) => {
|
||||
const {isBot} = parse(req.headers["user-agent"]);
|
||||
|
||||
const responseConfig = await fetch(process.env.NEXT_PUBLIC_CONFIG_APP_URL);
|
||||
|
||||
return {
|
||||
config: await responseConfig.json(),
|
||||
config: (await import(`&/config.json`)).default,
|
||||
messages: (await import(`&/locales/${locale}/app.json`)).default,
|
||||
isBot,
|
||||
locale,
|
||||
|
||||
Reference in New Issue
Block a user