Bug in codegen - files generate to the /pages dir don't work with getStaticProps

bug found with Codegen:
files generated to /pages directory (Next.js) are not compatible with getStaticProps, as they make use of useRouter() which is not available when static rendering

this started throwing errors in our app about 4 weeks ago (error is not blocking for us)

eek, quite right