#handling fetch timeouts
1 messages · Page 1 of 1 (latest)
Hi @primal fossil. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Hmm, I don't know enough to give you a confident answer yet. The provided extracts do not mention any built-in support for timeouts in the patched version of fetch in Next.js. For more detailed information, you may want to refer to the Next.js documentation (https://nextjs.org/docs).
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@primal fossil kapa.ai is still learning and improving, please let us know how it did by reacting below
Let me check the knowledge base for you. One moment! :books:
Based on the information provided in the extracts, here's a general guide on how you can implement your stack:
Frontend (Next.js + TypeScript):
- Set up your Next.js project with TypeScript. You can use the
create-next-appcommand to set up a new Next.js project. Here's the command from the source (https://vercel.com/guides/nextjs-prisma-postgres):
npx create-next-app --example <https://github.com/prisma/blogr-nextjs-prisma/tree/main> blogr-nextjs-prisma
- Navigate into the directory and launch the app:
cd blogr-nextjs-prisma && npm run dev
Backend (C#):
The extracts do not provide information on setting up a C# backend. You might want to look into .NET Core for building your backend with C#. AWS has services like AWS Lambda for running your backend code without provisioning or managing servers.
Database (Prisma + PostgreSQL):
- Set up Prisma and connect it to your PostgreSQL database. Install the Prisma CLI via npm:
npm install prisma --save-dev
-
Create the tables in your database using the Prisma CLI. Create a
schema.prismafile in aprismafolder. This file will contain your database schema. -
Push the Prisma schema to your database:
npx prisma db push
- Install Prisma Client in your app:
npm install @prisma/client
- Generate your Prisma Client:
npx prisma generate
For the database, you can use AWS RDS to host your PostgreSQL database.
Deployment:
You can deploy your Next.js frontend on Vercel. For your C# backend, you can use AWS Elastic Beanstalk or AWS Lambda, depending on your needs. Your PostgreSQL database can be hosted on AWS RDS.