Comments (11)
Yes, I am programing electron first. But with business growing, I find the necessity to make an web version product, so that's why I have this requirement. But I finally change some code and delete some electron related code(they are useless on web) then simply use
npx next build ./renderer
to build it. And it seems works well currently.
from nextron.
I can understand the pain, maybe, we can work on a tool to move logic from IPC com to the empty nextjs project.
To be honest, if we have to think about the relevancy of the topic, it seems fair to work on the opposite direction: moving from nextjs project to a nextron project or start a nextron app from a nextjs app.
from nextron.
@liosummer , I mean, you can still do this π
Yes, I am programing electron first. But with business growing, I find the necessity to make an web version product, so that's why I have this requirement. But I finally change some code and delete some electron related code(they are useless on web) then simply use
npx next build ./renderer
to build it. And it seems works well currently.
from nextron.
Can you share any snip code so that we can help you?
from nextron.
it's a normal Nextron repo, the directory haven't been edited.
I know I can make a new next.js repo and copy file to new repo, but there are too many files and configurations. So I want to know if there is any command to export a next.js repo for browser end( a web app ).
thank you!!!!
(My English is bad, wish you can understand and I am willing to make further explanation for you if you don't understand! thanks again)
from nextron.
Hey, I understand what you mean now.
At this stage, you have developed a nextron app, and you would like to know how you could export it into next.js right?
To my knowledge, I don't have any command over doing that. But that could be cool to have.
If so, you can copy all your page and paste it in your new next.js project (with all your /api folder).
from nextron.
How could that work out ? I mean there is still electron code specific, like ipc communication and other stuff, how copy pasting in a next app could work ?
from nextron.
They are only logic right, you can rewrite your IPC communication code to the /api/your_method_file.js
and it just works.
from nextron.
Oh yeah, but it's not simply copy and pasting, there is a bit more to it that's what I meant
So yeah, redoing config, and replacing electron native stuff in a new next js app
from nextron.
Done.
from nextron.
@bm777 When will this feature be available?
from nextron.
Related Issues (20)
- ESM: latest sindresorhus packages support HOT 3
- IPC example HOT 14
- i18next Localization of dynamic pages does not work in the build HOT 2
- Nextron Tailwind Example does not work with `pnpm` HOT 2
- Vercel backend SSR / server actions HOT 1
- How to remove window.ipc.on listener? HOT 1
- cat not start debugger port
- error: unknown option '-o' HOT 16
- remote debugging HOT 1
- Nextron v9 with next js 14.2.4 white window in prod build with page router and electron 31 HOT 8
- Next Ui Support HOT 1
- vscode debug not work
- Is there an example of next js app router ? I tried ,but failed. HOT 3
- Monorepo: "Next not found in both dependencies and devDependencies."
- Nextron js is completely broken - Everything does not seems to work anymore HOT 3
- Nextron exports the build results to "app" directory, so please set "distDir" to "../app" in next.config.js HOT 1
- Using next js 14 app router,When nodeIntegration set to true,the useEffect not triggerοΌ
- Unable to Build Nextron HOT 2
- Different Directories for Different OS builds.
- ERR_TOO_MANY_REDIRECTS on fresh install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextron.