CamBlackwood
CamBlackwood
Explore posts from servers
TTCTheo's Typesafe Cult
Created by CamBlackwood on 8/25/2023 in #questions
Quick way to protect all routes under a certain parent route in nextjs (app router)?
Is there any way I can try and automatically run a function (I guess some kind of middleware) to determine a user's level of auth (I'll have access to this via an API call), and then prevent the render of said page and redirect, only under a certain route and its children?
7 replies
TTCTheo's Typesafe Cult
Created by CamBlackwood on 4/14/2023 in #questions
Best Way to Handle Rich Text Input in a NextJS app?
I'm a developer working on an app connecting university/college graduates with job opportunities at startups, and as such the startups need to be able to input rich text for their "company page" and each individual job post - ensuring they're formatted properly and not just huge blocks of text. What I'm essentially after is a rudimentary version of Medium's blogging inputs. I'm currently testing it with React Slate, but has anyone used anything else that they'd recommend, or another approach entirely? Thanks 🙏
8 replies