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,