Skip to content

Neutron working with latest versions of nextjs & electron

Notifications You must be signed in to change notification settings

kkortes/next-neutron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-neutron

Working next + neutron + electron combo with (as of January 2020) latest versions:

"electron": "^7.1.9",
"next": "^9.2.0",
"react": "^16.12.0",
"react-dom": "^16.12.0"
Node v10.16.3
Npm v6.9.0

This is a new Electron app created with Neutron by the awesome guys over at Vercel.

Neutron github repo seems to be private, so couldn't fork it. Link leads to npmjs.

Monkey-patch for node_modules/neutron with patch-package

Since I couldn't fork neutron on github, this repo includes a monkey-patch for neutron to support Next 9.X.X.

Builds from root

The regular version of neutron expects nextjs-code to be located in /renderer. In this repo neutron grabs out dir from root. This means you can:

  • Build the project regularly with next build & next export and publish to Vercel
  • Build the project for Mac / Windows using Electron with neutron build

How to get going

npm install

npm run dev runs next (develop as usual using the browser)

npm run build runs next build (.next)

npm run electron-dev runs neutron (develop in-electron)

npm run electron-build runs neutron build (.exe/.app into /apps)

Published to Vercel

next-neutron.now.sh

About

Neutron working with latest versions of nextjs & electron

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published