diff --git a/tools/run-selfhosted.js b/tools/run-selfhosted.js index d27f98523..569e543a6 100644 --- a/tools/run-selfhosted.js +++ b/tools/run-selfhosted.js @@ -26,6 +26,13 @@ import console from 'node:console'; import process from 'node:process'; +try { + const dotenv = require('dotenv'); + dotenv.config(); +} catch (e) { + // dotenv is optional +} + const surrounding_box = (col, lines) => { const lengths = lines.map(line => line.length);