diff --git a/example.env.local b/example.env.local index 7264183..165c316 100644 --- a/example.env.local +++ b/example.env.local @@ -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" diff --git a/public/files/راهنما.pdf b/public/files/راهنما.pdf index d6a780f..5b9ce57 100644 Binary files a/public/files/راهنما.pdf and b/public/files/راهنما.pdf differ diff --git a/src/core/utils/globalServerProps.js b/src/core/utils/globalServerProps.js index dffb0f2..ef8e1b8 100644 --- a/src/core/utils/globalServerProps.js +++ b/src/core/utils/globalServerProps.js @@ -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,