mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-16 20:42:21 +01:00
🐛 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');
|
||||
|
||||
if (process.platform !== 'win32') {
|
||||
if (process.platform !== 'win32' || env.NEXT_PUBLIC_NODE_ENV === 'development') {
|
||||
try {
|
||||
const { stdout, stderr } = await exec("mount | grep '/data'");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user