Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
10 replies
c

Example files missing, referenced in folder structure docs.

From https://create.t3.gg/en/folder-structure#srcpagesapi

src/pages/api

The api folder contains all the API routes of the Next.js application. The examples.ts file contains an example of a route that uses the Next.js API route feature along with Prisma. The restricted.ts file contains an example of a route that uses the Next.js API route feature and is protected by NextAuth.js.

When I look through the actual folder structure of a newly scaffolded app I don't see either. Were they removed and just not updated in docs? Are those examples contained elsewhere in the structure now?
Was this page helpful?