Skip to content

Commit

Permalink
Update usage-next-13.mdx: Clarify that the API route need to stay in …
Browse files Browse the repository at this point in the history
…the pages folder (#848)

Co-authored-by: Siddharth Suresh <[email protected]>
  • Loading branch information
tordans and siddhsuresh authored Oct 25, 2023
1 parent 23ff59b commit c4a9c35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/pages/docs/usage-next-13.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

**What not to change:**

`/pags/api/rpc/[[...blitz]].ts` stays in the `/pages` folder.

#### 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).
Expand Down

1 comment on commit c4a9c35

@vercel
Copy link

@vercel vercel bot commented on c4a9c35 Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blitzjs-com – ./

blitzjs-com-blitzjs.vercel.app
blitzjs.com
blitzjs-com-git-main-blitzjs.vercel.app

Please sign in to comment.