Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update nextjs.mdx (#34587)

gitNetw0rkab9b0c9ac53d
diff --git a/apps/docs/content/guides/auth/server-side/nextjs.mdx b/apps/docs/content/guides/auth/server-side/nextjs.mdx
index 53e9c06e695..3f5d6fe41dd 100644
--- a/apps/docs/content/guides/auth/server-side/nextjs.mdx
+++ b/apps/docs/content/guides/auth/server-side/nextjs.mdx
@@ -167,7 +167,7 @@ export async function createClient() {
<StepHikeCompact.Details title="Hook up middleware">
-Create a `middleware.ts` file at the root of your project.
+Create a `middleware.ts` file at the root of your project, or inside the `./src` folder if you are using one.
Since Server Components can't write cookies, you need middleware to refresh expired Auth tokens and store them.