Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add existing Next.js project to Electron app? #257

Open
hoangvu12 opened this issue May 8, 2022 · 12 comments
Open

Add existing Next.js project to Electron app? #257

hoangvu12 opened this issue May 8, 2022 · 12 comments
Labels
question Further information is requested

Comments

@hoangvu12
Copy link

Is there any way to add existing Next.js project to Electron App? I have a Next.js website project, now I'm planning to create an Electron app without using Webview to display the website the directly. I don't want to copy each file so a way like pull code from the website's repository would be awesome

@m5x5
Copy link
Collaborator

m5x5 commented May 8, 2022

Technically you should be able to just copy the whole Next.js project into the renderer/ folder. Or am I missing something?

@hoangvu12
Copy link
Author

Technically you should be able to just copy the whole Next.js project into the renderer/ folder. Or am I missing something?

if I can clone and pull the existing code from repo into /renderer would be awesome, I just don't want to manually change everything if I add/change something on that existing code.

@m5x5
Copy link
Collaborator

m5x5 commented May 9, 2022

I'm not quite sure how many people could use something like that. What do you think about writing a script in batch or with Node.js + fs that'll copy files over before you run the code?

@hoangvu12
Copy link
Author

I'm not quite sure how many people could use something like that. What do you think about writing a script in batch or with Node.js + fs that'll copy files over before you run the code?

I tried to manually copying the source code from my website and it didn't seem to run, looks like the errors are from webpack things

@m5x5
Copy link
Collaborator

m5x5 commented May 10, 2022

If you show them we can try to figure out what happens there.

@chriszrc
Copy link

Any updates on this...

@saltyshiomix saltyshiomix added the question Further information is requested label Sep 13, 2023
@filippozanfini
Copy link

filippozanfini commented Sep 25, 2023

Any update on this?

@sinameraji
Copy link

Why cant Electron be added to an existing Next js project? that sounds like a trivial thing that should just work by default

@aperekrestov
Copy link

I have the same question

@mahbd
Copy link

mahbd commented Jun 2, 2024

It will be nice to be able to convert existing nextjs project to nextron project

@ilyesBoukraa
Copy link

any updates on thsi?

@onuralphho
Copy link

any updates ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

10 participants