├── .env ├── .eslintrc ├── .gitignore ├── .npmrc ├── .vscode └── settings.json ├── @trpc └── next-layout │ ├── HydrateClient.tsx │ ├── createTRPCNextLayout.ts │ ├── index.ts │ └── localStorage.ts ├── README.md ├── app ├── global.css ├── layout.tsx ├── page.tsx ├── post │ └── [id] │ │ └── page.tsx └── secret │ ├── error.tsx │ └── page.tsx ├── client ├── CreatePostForm.tsx ├── HydrateClient.tsx ├── trpcClient.tsx └── useIsIntersecting.tsx ├── components ├── PostList.tsx └── PostListItem.tsx ├── next.config.js ├── package.json ├── pages └── api │ ├── auth │ └── [...nextauth].ts │ └── trpc │ └── [trpc].ts ├── pnpm-lock.yaml ├── postcss.config.js ├── prisma ├── _sqlite │ └── schema.prisma ├── migrations │ ├── 20211019164222_init │ │ └── migration.sql │ ├── 20220307124425_non_unique_timestamps │ │ └── migration.sql │ ├── 20220918091608_pagination │ │ └── migration.sql │ ├── 20220918134120_revert │ │ └── migration.sql │ └── migration_lock.toml ├── schema.prisma └── seed.ts ├── public ├── favicon.ico └── vercel.svg ├── server-rsc ├── getUser.tsx └── trpc.ts ├── server ├── context.ts ├── env.js ├── prisma.ts ├── routers │ ├── _app.ts │ ├── health.ts │ ├── post.test.ts │ └── post.ts └── trpc.ts ├── shared ├── hydration.ts └── utils.ts ├── styles ├── Home.module.css └── globals.css ├── tailwind.config.js └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/.env -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | strict-peer-dependencies=false -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /@trpc/next-layout/HydrateClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/@trpc/next-layout/HydrateClient.tsx -------------------------------------------------------------------------------- /@trpc/next-layout/createTRPCNextLayout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/@trpc/next-layout/createTRPCNextLayout.ts -------------------------------------------------------------------------------- /@trpc/next-layout/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/@trpc/next-layout/index.ts -------------------------------------------------------------------------------- /@trpc/next-layout/localStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/@trpc/next-layout/localStorage.ts -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/README.md -------------------------------------------------------------------------------- /app/global.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/app/global.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/app/page.tsx -------------------------------------------------------------------------------- /app/post/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/app/post/[id]/page.tsx -------------------------------------------------------------------------------- /app/secret/error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/app/secret/error.tsx -------------------------------------------------------------------------------- /app/secret/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/app/secret/page.tsx -------------------------------------------------------------------------------- /client/CreatePostForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/client/CreatePostForm.tsx -------------------------------------------------------------------------------- /client/HydrateClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/client/HydrateClient.tsx -------------------------------------------------------------------------------- /client/trpcClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/client/trpcClient.tsx -------------------------------------------------------------------------------- /client/useIsIntersecting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/client/useIsIntersecting.tsx -------------------------------------------------------------------------------- /components/PostList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/components/PostList.tsx -------------------------------------------------------------------------------- /components/PostListItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/components/PostListItem.tsx -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/package.json -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /pages/api/trpc/[trpc].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/pages/api/trpc/[trpc].ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/_sqlite/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/prisma/_sqlite/schema.prisma -------------------------------------------------------------------------------- /prisma/migrations/20211019164222_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/prisma/migrations/20211019164222_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20220307124425_non_unique_timestamps/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/prisma/migrations/20220307124425_non_unique_timestamps/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20220918091608_pagination/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/prisma/migrations/20220918091608_pagination/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20220918134120_revert/migration.sql: -------------------------------------------------------------------------------- 1 | -- DropIndex 2 | DROP INDEX "Post_createdAt_key"; 3 | -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /server-rsc/getUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server-rsc/getUser.tsx -------------------------------------------------------------------------------- /server-rsc/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server-rsc/trpc.ts -------------------------------------------------------------------------------- /server/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/context.ts -------------------------------------------------------------------------------- /server/env.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/env.js -------------------------------------------------------------------------------- /server/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/prisma.ts -------------------------------------------------------------------------------- /server/routers/_app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/routers/_app.ts -------------------------------------------------------------------------------- /server/routers/health.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/routers/health.ts -------------------------------------------------------------------------------- /server/routers/post.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/routers/post.test.ts -------------------------------------------------------------------------------- /server/routers/post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/routers/post.ts -------------------------------------------------------------------------------- /server/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/server/trpc.ts -------------------------------------------------------------------------------- /shared/hydration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/shared/hydration.ts -------------------------------------------------------------------------------- /shared/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/shared/utils.ts -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/next-13/HEAD/tsconfig.json --------------------------------------------------------------------------------