Next.js Discord

Discord Forum

is it possible to build client side application using next js 13?

Unanswered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
I dont want to use server component at all and i want the app to be served statically and used as a client side app only. dont want to run a server that will server my app..

21 Replies

If you mean client-side rendering (CSR), Next.js doesn't offer it
I'd suggest going for another framework like Vite
@Youssef If you mean client-side rendering (CSR), Next.js doesn't offer it I'd suggest going for another framework like Vite
Cuban CrocodileOP
if i am using app directory i will need to spin up a server it will not work if hos t it on netlify or amplify ?
@Cuban Crocodile Damm!! it will be a pain
You asked if it was possible 😀
Cuban CrocodileOP
Now I'm crying as well
Don't wanna port to something that will lost support pretty soon
Why not give an option to use client side as well? It's all about making money in the end
@Cuban Crocodile Damm!! it will be a pain
Next js, pages and a client side app is a perfect mix
Not everyone does this
But it can work really well
Cuban CrocodileOP
@linesofcode hmm thinking to go that route but which router is good if i wish to go vite route? @Morgan @Youssef
Cuban CrocodileOP
vite is more of bundling tool not a framework here https://vitejs.dev/guide/
kind of like cra with webpack configured this also comes with react pre configured config
Do they recommend a router?
Cuban CrocodileOP
They dont, There are framework based router, eg nextjs gatsby and then react router and a new one from tanstack, tankstack router
Tanstack is usually very good