AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How Launch Darkly Changed the Way We Moved Our Application to Next.js
The old legacy application had React Router installed in it. So the routes were programmatically inserted into the application. Next.js handles that piece for you so you don't have to programmatically put them in your app. You just have to set up the right file folder structure. Every Next.js app has a pages folder and underneath there are all your subfolders that map perfectly to your routes. And one of the things I like doing is I like to just make sure that that pages folder only really contains routing logic.