rockiger / reactpress

Plugin that lets you easily create, build and deploy React apps into your existing WordPress sites.
https://rockiger.com/en/reactpress/
GNU General Public License v2.0
51 stars 7 forks source link

Next JS structure #45

Open MB-KING opened 10 months ago

MB-KING commented 10 months ago

Please, please provide the possibility to use the project and build Next JS structure

rockiger commented 10 months ago

Can you tell me how this could work in a way that is beneficial for developers? Do you only want NextJS's structure or do you want to use SSR?

I thought about this, but I don't see would this work with NextJS routing, which is file-based.

MB-KING commented 10 months ago

I don't mean server side rendering

Build Normal Next JS can be started and visible by its own commands, which I think is a difficult path to add.

But by changing the NextJS configuration, you can prepare a static output that is taken in the output build folder, which is the same as crate React app and vite.

https://nextjs.org/docs/pages/building-your-application/deploying/static-exports

@rockiger