Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
nextjs 12 (and below) same getServerSideProps function in multiple routes - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
1 reply
shikishikichangchang
nextjs 12 (and below) same getServerSideProps function in multiple routes
is there a way to call the exact same getServerSideProps function in multiple
(nested
) routes
?
I want to check if the current route
/page matches some path regex
, and if it does
, call the getServerSideProps function
. Else
, do nothing
.
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
getServerSideProps NextJS
TTC
Theo's Typesafe Cult / questions
4y ago
tRPC, Nextjs GetServerSideProps and satisfies error.
TTC
Theo's Typesafe Cult / questions
4y ago
Protected routes in Nextjs?
TTC
Theo's Typesafe Cult / questions
4y ago