All Questions
Tagged with vercel javascript
546
questions
-3
votes
0
answers
15
views
Node.js Video Upload Feedback Project Not Working on iPhone [closed]
I'm working on a project where users can upload their videos and receive feedback using the Gemini and OpenAI APIs. The frontend is deployed on Vercel, and the backend is on Railway.
The project works ...
0
votes
0
answers
28
views
TailwindCss has different colors in Dist Build and run Dev
I need to help please, I have been building a project with tailwindCss and React, with Vite, but when I build my project then generate the dist carpet, but the colors are different when I run project ...
0
votes
1
answer
47
views
Nextjs API works in local environment but not in production
I have created a blog project using Next. When posting a new article, the API route is called with axios and the article is created in my database (MongoDB).
Everything works fine in local ...
0
votes
0
answers
20
views
how to actually implement a serverless function on Vercel for Vite code for production environment?
My code works perfectly fine using Vercel Dev, and a Postman request to the API route, but still, it says "Error: Error: Failed to fetch response."
I think the error may be a wrong fetch ...
0
votes
1
answer
54
views
How to prevent cached responses with Astro on Vercel?
I am trying to fetch data on the client side in Astro, but I keep getting a cached response.
From my endpoint in src/pages/api/spotify.ts I am sending:
export const prerender = false;
...
export const ...
0
votes
1
answer
32
views
Vercel not applying images and css
I recently built a static website for a friend of mine and asked me to use vercel to deploy it. When I did the webiste looks like this:https://links-eight-nu.vercel.app/
here is my github: https://...
0
votes
0
answers
37
views
Astro Deployment Works Locally, Breaks in Vercel
I have a blog-like project in Astro that works perfectly locally. When I deploy it on Vercel, the images under src won't load. My project tree looks as follows:
.
└── src/
├── content/
│ ...
0
votes
2
answers
66
views
Rendering Child in Child
Im trying to solve, which should be a relatively straight forward issue. I am trying to render a component in the following page. I defined a layout for all children under dashboard. Im not sure if ...
-1
votes
0
answers
47
views
A Node.js module is loaded ('url' at line 3) which is not supported in the Edge Runtime
I'm getting this error A Node.js module is loaded ('url' at line 3) which is not supported in the Edge Runtime. I have a middleware.js file but it's empty. If it I remove it, the whole project crashes....
0
votes
0
answers
24
views
My vercel deployment doesn't work, error in the html
I'm trying to host a project on Vercel,
type of monolithic architecture project, with a backend API in Express and pages in React that integrate this API's routes for data, but Vercel does not build ...
0
votes
1
answer
58
views
Can't access Environment Variables on Vercel using JavaScript
I want to access env variables on Vercel using JavaScript (TypeScript). I have set them under /settings/environment-variables, but when i try to access them using process.env.TURSO_DATABASE_URL during ...
0
votes
0
answers
27
views
Transfer from cloudflare worker to vercel
I want to move the following code that works in Cloudflare Worker to another server like Vercel
worker.js
addEventListener(
"fetch", event => {
let url = new URL(event.request....
1
vote
0
answers
47
views
Vercel CORS Error when trying to fetch from backend api also hosted on Vercel
I'm trying to fetch data from my API hosted on Vercel but it says CORS error.
I can fetch the data from insomnia and the same copy of the website locally works just fine. The same link gives the CORS ...
0
votes
0
answers
40
views
I am having a redirect issue with vercel and Nextjs app router
My API is working well on my local server and postman, and when I deploy to vercel it works well too, but when I change the domain settings to redirect to my custom domain from the vercel default ...
1
vote
2
answers
62
views
How do I fix a 404 Error in Vercel/Github?
I started a very simple project using only Html, Css and Vanilla JS. When I deployed it to Vercel, first it worked and then it just gave me an error (404 Not Found). As the project is still in its ...