leo / electron-next

Build Electron apps using Next.js
https://github.com/leo/site/blob/beef3a7dc1dfd435a9d8377e3b1b59761ccb7fc7/pages/2017/electron-next.js
MIT License
548 stars 41 forks source link

Next@6 breaks dist build #17

Closed zawupf closed 6 years ago

zawupf commented 6 years ago

In a dist build the main.js file cannot be loaded.

Next@6 creates the main.js file under _next/static/commons. Therefore the file protocol interception path replacement matches twice, resulting in an invalid path to main.js.

A break after the first match fixes the issue for me: https://github.com/zawupf/electron-next/commit/d92fd0e36d9241a229c217f9d980c4f5fbbcbbea

Guizzu commented 6 years ago

Any idea on when can we get this fixed?