From 68bb6129b52b65d3b6f2660b3ffba67b1322bb07 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 25 Oct 2023 18:10:07 +0200 Subject: [PATCH] Update usage-next-13.mdx: Clarify `/src/app` folder (#845) * Update usage-next-13.mdx: Clarify `/src/app` folder * Update usage-next-13.mdx: Change to recommendation --- app/pages/docs/usage-next-13.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/pages/docs/usage-next-13.mdx b/app/pages/docs/usage-next-13.mdx index c2acf41d..25620ff5 100644 --- a/app/pages/docs/usage-next-13.mdx +++ b/app/pages/docs/usage-next-13.mdx @@ -29,6 +29,10 @@ Add the new `use client` directive to the following files: 1. `src/blitz-client.(ts|js)` 2. All Files with usage of `useQuery`, `useInfiniteQuery`, `usePaginatedQuery`, `useMutation`, `Hydrate` and other React Query client side hooks. +#### Recommendations + +- For Blitz apps that have their pages at `/src/pages` it is recommended to colocate the app directory at `/src/app`. However, a root `/app` App directory is also supported. More on the new NextJS file structure at ["Project Organization and File Colocation"](https://nextjs.org/docs/app/building-your-application/routing/colocation#src-directory). + #### BlitzProvider {#blitz-provider} This provider should wrap the app and should be placed at the `(root)/layout.ts` file.