Next.js Discord

Discord Forum

Next JS for only for frontend

Answered
Raspberry Horntail posted this in #help-forum
Open in Discord
Raspberry HorntailOP
I want to use NEXT js only for frontend, is there any guide how to do that?
Answered by B33fb0n3
@Raspberry Horntail solved?
View full answer

6 Replies

@Raspberry Horntail I want to use NEXT js only for frontend, is there any guide how to do that?
You can just use nextjs as you would normally do. If you only want a full frontend application, use react. It's only clientside
Masai Lion
https://nextjs.org/docs/app/building-your-application/deploying/static-exports to export it to static files, but you still need a server/filehost to serve the files
and if you export them like that, you have some disadvantages, that are also mentioned on the page
@B33fb0n3 and if you export them like that, you have some disadvantages, that are also mentioned on the page
Raspberry HorntailOP
ahh i dont really understand
do i need to use react-router to handle dynamic routes?
@Raspberry Horntail ahh i dont really understand do i need to use react-router to handle dynamic routes?
nah, you need to generate every single route using generateStaticParams(). Then every page can be generated during build time and you can still have dynamic pages
@Raspberry Horntail solved?
Answer