Skip to main content

All Questions

Tagged with
0 votes
0 answers
21 views

Error occurring when fetching data in server component from Vercel-hosted FastAPI

I'm hosting a FastAPI backend server like this Vercel Template: https://vercel.com/templates/next.js/nextjs-fastapi-starter. I am trying to perform a fetch call in a Server Component using await fetch(...
Tyler Yu's user avatar
-1 votes
0 answers
14 views

Optimizing Server-Side Caching and Rendering of Dynamic Menus in a Multi-Tenant Food Commerce System Using Next.js

I am working in a multi tenant food commerce project. Using nextjs (page router) for frontend and deploying a single project on vercel. Restaurant owners will be connecting their domains in the same ...
htabir's user avatar
  • 1
0 votes
0 answers
41 views

How to enable CORS with NEXT 14 at Vercel?

I have an api endpoint, and I want it to be accessible from any domain name (everyone can use it from web on their domains). import { NextApiResponse } from "next"; import { NextResponse } ...
SERG's user avatar
  • 4,007
1 vote
0 answers
30 views

Streaming audio data from my serverless(Vercel) next.js app to a storage (Azure blob storage for example)

What is the best way to stream in realtime audio that my users record on my next.js app directly to a storage? As you know if you are using vercel you do not have a server so I need to find a ...
Yuval Gal's user avatar
0 votes
1 answer
98 views

Error 'SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON' when Fetching Internal API for SSG with NextJS AppRouter on Vercel

I have a Next.js application with the following code: export default async function StaticSiteGenerator() { const res = await fetch(`https://{DOMAIN_NAME}/api/data`); const data = await res.json();...
user25401403's user avatar
0 votes
0 answers
26 views

How to get file path in nextjs 13?

This is the code which is working perfectly fine in development: const apnProvider = () => { return new apn.Provider({ token: { key: path.join(process.cwd(), "src/lib/credentials/...
Sujjeee's user avatar
  • 75
0 votes
1 answer
36 views

Node Modules MongoDb error when deploying NextJs project to Vercel

enter image description here I am using mongodb with mongoose for my database and I am getting this error when i deploy my website to vercel. My website is running perfectly on localhost. I cannot ...
Manav Mahesh Sanger's user avatar
0 votes
0 answers
187 views

how to fetch a streaming response using vercal ai sdk with langchain?

I am new to vercal ai sdk and I am trying to create a simple chatbot using vercal ai sdk in next js with langchain framework. I folowed the tutorial given on official docs but still unable to fetch ...
Aman Sharma's user avatar
0 votes
0 answers
25 views

revalidate nextjs dynamic metadata title

Helllo, I have this metadata code on my page.tsx, but revalidate don't work I need something similar a update title in interval 30 seconds import { cookies } from 'next/headers'; import ChatStart from ...
Wroblewski's user avatar
0 votes
1 answer
536 views

Why does my server action not run when I pass in images that are too large using Next.js 14?

The following code is in a client component. I'm using a server action to add a product to my DB and images to my storage. When I try to add a product that has images that add up to at least 2MB the ...
Cole's user avatar
  • 325
0 votes
2 answers
317 views

How to make a request to HTTP API from HTTPS frontend?

I have a flask app hosted via AWS ECS which has an amazon generated url so I can't request an SSL certificate for it. I have a next js frontend hosted on vercel that cannot handle insecure requests. ...
Adit Desai's user avatar
0 votes
0 answers
32 views

Next.JS: How can i find the generated static files for a route?

When next.js generated a static page (i.e using the getStaticProps), is it possible to get the static files and able to host just that route on a seperate server maybe using serve command etc. ? For ...
Shreyas Jadhav's user avatar
0 votes
1 answer
223 views

How to hide API routes in Next JS frontend

I have made a NextJS application I want to protect/hide their /api routes as any user can access API routes just by typing URL/api/**/*. This is a security issue, I am using those API(s) in my app as ...
Raghav Patel's user avatar
1 vote
0 answers
79 views

Dalle3 request in Next.js 14 server actions leading to FUNCTION_INVOCATION_TIMEOUT on vercel

I am hosting my next 14 app on Vercel. My app generates images using the dalle3 api and stores them into a firebase firestore. It all works correctly on my dev server but gets a ...
Michi Plays's user avatar
1 vote
1 answer
255 views

How Can I Ensure Fonts on Vercel Deployment Match Those on Localhost in a Next.js with Shadcn UI Project?

Has anyone else experienced discrepancies in fonts between their local development environment and their Vercel deployment in Next.js projects, particularly when using Shadcn UI? Despite having ...
Vladimirzb's user avatar

15 30 50 per page
1
2 3 4 5
10