From f06dff7bb7d3c6f7c602d5f4feed096730b07fc4 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Tue, 14 Nov 2023 20:52:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20production=20environment?= =?UTF-8?q?=20check=20before=20checking=20mountpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/onboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/onboard.tsx b/src/pages/onboard.tsx index bad0f1f23..43331fb63 100644 --- a/src/pages/onboard.tsx +++ b/src/pages/onboard.tsx @@ -124,7 +124,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => { } Consola.info('Database is writeable'); - if (process.platform !== 'win32') { + if (process.platform !== 'win32' || env.NEXT_PUBLIC_NODE_ENV === 'development') { try { const { stdout, stderr } = await exec("mount | grep '/data'");