🐛 Add production environment check before checking mountpoint

This commit is contained in:
Meier Lukas
2023-11-14 20:52:05 +01:00
parent a0efd01d43
commit f06dff7bb7

View File

@@ -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'");