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