Added dotenv package and implemented proper .env file loading for Electron application. Fixed API key loading issue.
This commit is contained in:
parent
7a6d050f6d
commit
2afc937555
4
main.js
4
main.js
@ -1,6 +1,10 @@
|
||||
const { app, BrowserWindow, dialog, ipcMain } = require('electron');
|
||||
const path = require('path');
|
||||
const { scanDirectory, extractFileMetadata } = require('./utils/fileUtils');
|
||||
const dotenv = require('dotenv');
|
||||
|
||||
// Load environment variables from .env file
|
||||
dotenv.config();
|
||||
|
||||
// Handle creating/removing shortcuts on Windows when installing/uninstalling.
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user