Questions tagged [vercel]

Vercel is the platform for frontend developers. Vercel has zero-configuration support for 35+ frontend frameworks and integrates with your headless content, commerce, or database of choice.

Vercel is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration.

They enable teams to iterate quickly and develop, preview, and ship delightful user experiences. Vercel has zero-configuration support for 35+ frontend frameworks and integrates with your headless content, commerce, or database of choice.

2631 questions
4
votes
0 answers

Trouble deploying Nestjs app on Vercel (Zeit)

I have a github action set up to deploy a Nestjs app on Vercel, but it is giving me the following error: You defined 1 build that did not match any source files (please ensure they are NOT defined in .vercelignore): There is nothing after the : in…
Jacobdo
  • 1,681
  • 2
  • 18
  • 38
4
votes
2 answers

Environment variable in Vercel redirects

I want to deploy my create-react-app to Vercel. I define my redirects in my now.json as follows: { "redirects": [ { "source": "/api/(.*)", "destination": "BACKEND_URL/$1", "statusCode": 200 } ] } The destination URL depends on the…
Guilhem Fry
  • 326
  • 4
  • 17
4
votes
1 answer

How to fix Error: SQLITE_CANTOPEN: unable to open database on Zeit.co?

I want to connect to my database which is sqlite3. This is work fine on localhost and fail when I deployed to zeit.co with ERROR: Error: SQLITE_CANTOPEN: unable to open database As I understand, this issue is because we cannot get right path to…
Hoang Subin
  • 6,610
  • 6
  • 37
  • 56
4
votes
1 answer

Call cloud functions without waiting for response

Trying a little hack here with cloud functions but can't seem to figure out what the issue is. I'm currently using now.sh to host serverless functions and would like to call 1 function from another. Lets say I have 2 functions declared fetchData &…
Jude Fernandes
  • 7,437
  • 11
  • 53
  • 90
4
votes
2 answers

Axios api proxy on nuxt doesn't work on server side rendering on now zeit deploy

Following the Axios NuxtJS config, I created a proxy config like this on my nuxt.config.js: proxy: { '/api/': { target: 'https://myapidomain.com/', pathRewrite: { '^/api/': '' }, changeOrigin: true } } This config…
Daniel Cukier
  • 11,502
  • 15
  • 68
  • 123
4
votes
0 answers

next.js reloading index gives "unexpected error" once deployed

I'm learning how to use next.js and following the guide along. I finished the first section which eventually gets you to deploy a very simple application using zeit/now with an express backend. On my local dev server and local build it works fine, I…
asdfghjklm
  • 643
  • 2
  • 7
  • 18
3
votes
0 answers

How to implement facebook api conversions with nextjs 13

I made a website for a client, using nextjs 13, and he wants to advertise on facebook ads, but for that we need to use the facebook pixel and the conversions API to collect user data. I implemented the pixel following the example of the vercel…
3
votes
0 answers

Page prevented back/forward cache restoration in lighthouse

I'm developing a site with nuxt and hosting it on vercel. Doing performance tests with lighthouse, locally (always on the builds), I have no particular problems, while on the real site, there is always the problem: "Page prevented back/forward cache…
Teo7
  • 47
  • 5
3
votes
1 answer

Error deploying Next.js(V13) to Vercel with @tiptap/react library

Im trying to deploy my NextJs(V13) to Vercel but it gives me this error: image (https://i.stack.imgur.com/iLZSA.png) It seems the issue is comming from useEditor which is for @tiptap/react library this is my create page: import Editor, { FinalPost }…
3
votes
3 answers

Data not updating when deployed Nextjs13 app on Vercel, despite using cache: 'no-store' in fetch request

I have a feed component in my application that fetches data from an API endpoint. The component works fine when I test it on my local build, but when I deploy it on Vercel, it doesn't fetch the latest data. I suspect this issue is related to…
3
votes
2 answers

react-three - 3D model displays a blank white square on Android phone devices

I am developing a portfolio application using Nextjs and 3D libraries such as Three and React-Three. I use Vercel to deploy the app. I am experiencing a problem where the 3D model in the deployed app is displaying as a blank white square on Android…
Itay Tur
  • 683
  • 1
  • 15
  • 40
3
votes
0 answers

Nuxt server route works locally, but not on remote Vercel Edge server: 404 Status Code -- why?

I have a Nuxt3 app using server routes. The app works fine locally. However, after deployment to Vercel using vercel-edge preset, one of the routes for some reason is a 404. When accessing this URL: https://modernmedtalk-dosstx.vercel.app/test and…
redshift
  • 4,815
  • 13
  • 75
  • 138
3
votes
1 answer

Clerk redirecting to localhost after authentication

On my production site hosted on vercel, after authentication with clerk, it redirects me to localhost. This only happens on the laptop I'm using for development. If I connect to the production site on another device, it correctly redirects me back…
Sujio
  • 357
  • 1
  • 2
  • 13
3
votes
0 answers

how to create sitemap with NextJs getStaticProps

I'm trying to use NextJS to generate the sitemap of my website. But it does have a lot of links. I would like to avoid processing all the links every sitemap.xml is accessed. I have something like this: import { GetServerSideProps } from…
Felipe César
  • 1,234
  • 2
  • 16
  • 34
3
votes
0 answers

NextJS 13 - 404 This page could not be found

I'm using the last version of nextJS (13.3) and have a fairly simple routing as follows. - app -- blog --- [post] The following route works perfectly in the local environment: http://localhost:3000/blog/just-a-blog-post. But deploying on Vercel…
Ayoub k
  • 7,788
  • 9
  • 34
  • 57