🐛 Add production environment check before checking mountpoint
This commit is contained in:
@@ -124,7 +124,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => {
|
|||||||
}
|
}
|
||||||
Consola.info('Database is writeable');
|
Consola.info('Database is writeable');
|
||||||
|
|
||||||
if (process.platform !== 'win32') {
|
if (process.platform !== 'win32' || env.NEXT_PUBLIC_NODE_ENV === 'development') {
|
||||||
try {
|
try {
|
||||||
const { stdout, stderr } = await exec("mount | grep '/data'");
|
const { stdout, stderr } = await exec("mount | grep '/data'");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user