mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-12 01:36:43 +02:00
fix: resolve EACCES permission issue and hydration error #418
This commit is contained in:
1 parent
0026e3134d
commit
4f4a0dbd62
4 files changed
+45
-13
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ let connectionString = process.env.DATABASE_URL;
|
||||
|
||||
// On tente de lire la config sauvegardée via l'UI
|
||||
try {
|
||||
const CONFIG_PATH = path.join(process.cwd(), ".db-config.json");
|
||||
const CONFIG_PATH = path.join(process.cwd(), "data", ".db-config.json");
|
||||
if (fs.existsSync(CONFIG_PATH)) {
|
||||
const config = JSON.parse(fs.readFileSync(CONFIG_PATH, "utf-8"));
|
||||
if (config.url) {
|
||||
|
||||
Reference in new issue
Block a user