NextJS-Electron-Boilerplate is really a nice template for start. however, I notice a error when use yarn build, style sheet and image file seems not loaded correctly. But it load correctly when debug using yarn start.
And it occured in yarn frontend:build, and it seems is caused by browser's CORS, the reference link of css and image is started with file// which is not allowd with CORS.
some mention add webSecurity: false, in BrowserWindow webPreferences would address this problem, but it don't works for me.
NextJS-Electron-Boilerplate is really a nice template for start. however, I notice a error when use
yarn build
, style sheet and image file seems not loaded correctly. But it load correctly when debug usingyarn start
. And it occured inyarn frontend:build
, and it seems is caused by browser's CORS, the reference link of css and image is started withfile//
which is not allowd with CORS.some mention add
webSecurity: false,
in BrowserWindow webPreferences would address this problem, but it don't works for me.how to reproduce:
platform
macOS x86