From 071251bf817e5e11119bc3d51bb24a7e3954a3d8 Mon Sep 17 00:00:00 2001 From: Markusplay Date: Thu, 4 Jan 2024 01:39:14 +0200 Subject: [PATCH] test build --- Dockerfile | 1 + src/app/layout.tsx | 1 - src/components/templates/account-page/AccountPage.tsx | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2aabcc4be..5467f1550 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ ARG NODE_ENV=${NODE_ENV} RUN if [ $NODE_ENV = "development" ]; then \ cp /app/.env.development /app/.env.production; fi +ENV NODE_ENV="production" RUN yarn install --prod && yarn build ################### diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6e3b778c6..f9dc70986 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -26,7 +26,6 @@ dayjs.tz.setDefault('Europe/Kiev'); dayjs.locale({ ...uk, weekStart: 1 }); const queryClient = new QueryClient(); -if (!process.browser) React.useLayoutEffect = React.useEffect; export default function RootLayout({ children, }: { diff --git a/src/components/templates/account-page/AccountPage.tsx b/src/components/templates/account-page/AccountPage.tsx index c3e272021..cd8ee0adf 100644 --- a/src/components/templates/account-page/AccountPage.tsx +++ b/src/components/templates/account-page/AccountPage.tsx @@ -31,7 +31,6 @@ import * as stylesMui from './AccountPage.styles'; const AccountPage = () => { const { replace } = useRouter(); - const query = useSearchParams(); const { isLoggedIn } = useAuthentication(); const [index, setIndex] = useState(AccountPageTab.GENERAL); @@ -39,7 +38,7 @@ const AccountPage = () => { if (!isLoggedIn) void replace('/login?~account'); }, [isLoggedIn, replace]); - const handleChange = async (event: SyntheticEvent, value: AccountPageTab) => { + const handleChange = async (_: SyntheticEvent, value: AccountPageTab) => { setIndex(value); };