Fixed no-env-warning to be more precise

This commit is contained in:
Ulf Gebhardt 2021-01-23 21:45:02 +01:00
parent 52842c51bb
commit 4842c5d7fe
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -8,7 +8,7 @@ if (require.resolve) {
dotenv.config({ path: require.resolve('../../.env') })
} catch (error) {
if (error.code !== 'MODULE_NOT_FOUND') throw error
console.log('WARN: No `.env` file found in /backend') // eslint-disable-line no-console
console.log('WARN: No `.env` file found in `/app` (docker) or `/backend` (no docker)') // eslint-disable-line no-console
}
}