Closed hulxv closed 2 years ago
Is this issue updated? I used API route to get access to sqlite in development mode, but this method failed when in production mode.
Is this issue updated? I used API route to get access to sqlite in development mode, but this method failed when in production mode.
Use it in backend -Electron- with any library you want like knex and send it to frontend by IpcMain, Because you can't export API route.
You can see how I use it in vnstat-client in this file.
Thanks, I figured out that yesterday. Now I am using ipcMain and ipcRenderer to communicate.
One thing still confuses me is preload.js
won't be found no matter I put it in main
folder or renderer
or app
,
I want to use the file for contextBridge
feature read on electron documentation.
How to can i use sqlite or another database in my project ?