Skip to content

Redirects Middleware #125

@joseph082

Description

@joseph082

Describe the solution you'd like

Prevent people from accessing pages in account setup flow before and after they're supposed to (e.g., people shouldn't be able to access /account-type after they've already selected their account type).

Prevent Researchers from accessing Student pages and API routes and vice versa.

Redirect students accessing /profile to their profile page. Use a supabase query for prod since Prisma doesn't support edge yet.

The /about page should redirect to the home page if a user is logged in. Allow signed out users to access the /about page.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions