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.
0 Replies