https://supertokens.com/ logo
#support-questions
Title
# support-questions
d

deltasoneca

04/13/2021, 12:48 PM
@User heads up: on your NextJS documentation you suggest creating the config file for supertokens inside the 'pages/' folder. This breaks the NextJS build (at least when deploying to Vercel, locally it worked just fine) with the error:
Copy code
> Build error occurred
Error: automatic static optimization failed: found pages without a React Component as default export in
I just moved the file out of
pages/
(into a folder that I named
config/
) and it fixed it.
3 Views