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
6
votes
3 answers

Cannot find module or type declarations while it works in local build

I keep getting this error when trying to build my app on Vercel, while it works locally without problems. Here is the error message Cannot find module Type error: Cannot find module './sidenav/SideNav' or its corresponding type declarations. At this…
Maxime Ghéraille
  • 1,465
  • 3
  • 16
  • 31
6
votes
2 answers

Next.js redirect www to non www

I have been trying to find a workable solution this searching google but can't find anything solid. I am hosting my Next.js application on Vercel. When I run a seo check it moans about me having the site available on www and non www and says I…
Waterfall
  • 584
  • 1
  • 5
  • 15
6
votes
6 answers

ModuleNotFoundError: Module not found: Error: Can't resolve '../config' in '/vercel/path0/components'

I have stumbled upon when deploying my next.js app through vercel. It works completely well in local using command 'npm run dev'. But when I tried to deploy it through vercel with Github remote repository, it throws error like below: …
Debasish
  • 417
  • 1
  • 10
  • 21
6
votes
1 answer

Vercel Rewrite: SPA Fallback except for API endpoint

I have a single page application + API I'm deploying to Vercel. I'm currently trying to add some configuration in my vercel.json that: redirects calls not at the root (e.g. /login) to index.html` so that I can utilize the HTML History API (i.e.…
Rico Kahler
  • 17,616
  • 11
  • 59
  • 85
6
votes
4 answers

How to fix NestJS deployment error to the Vercel?

this is the now.json { "version": 2, "name": "nestjs-now", "builds": [ { "src": "dist/main.js", "use": "@now/node" } ], "routes": [ { "src": "/(.*)", "dest": "dist/main.js" } ] } I'm not sure…
Yuji
  • 371
  • 1
  • 6
  • 22
6
votes
0 answers

Vercel deployment with server side and client software using the same domain name

I have an API running at api.example.com. I have this domain set up in AWS Route53 with a DNS A record that points it to a DigitalOcean server. This works fine. There is a front end application that I'd like to deploy on Vercel. The initial…
ChristianF
  • 1,735
  • 4
  • 28
  • 56
6
votes
2 answers

Nuxt environment variables exposed in client when uploaded to Zeit/Now

I am deploying a Nuxt App with Zeit/Now. In the development phase I was using a .env file to store the secrets to my Contentful CMS, exposing the secrets to process.env with the nuxt-dotenv package. To do that, at the top of the nuxt.config I was…
Moritz Laube
  • 369
  • 4
  • 14
6
votes
1 answer

NGINX proxy to a Zeit Now deployment

I have several application server running several Node applications (via PM2). I have one NGINX server which has the SSL certificate for the domain and reverse-proxies to the Node applications. Within the NGINX configuration file I set the domains…
Dennis Bauszus
  • 1,624
  • 2
  • 19
  • 44
5
votes
3 answers

Vercel Postgres + Nuxt Starter template gives 'missing_connection_string' when running local

I want to play around with these new storage features Vercel has added recently, but can't get the Postgress one to work. I used this template. It deployed perfectly fine, but when i try to run it locally i'm not sure how to do it. This is what i…
Awesom-o
  • 534
  • 6
  • 20
5
votes
0 answers

Error: Command "npm next build" exited with 1 BUILD_UTILS_SPAWN_1: Command "npm next build" exited with 1

I want to deploy my Nextjs Reactjs app to Vercel but the deployment keep failing. It had mooore errors than this previously but this error got me stuck too long. I've already add CI = false in my .env file and environment variable on Vercel,…
Flo
  • 149
  • 7
5
votes
2 answers

Stop Vercel preview deployments on Dependabot PRs

I want to stop Vercel from creating preview deployments for the dependabot pull requests. In Vercel, in the Ignored Build Step I've tried this: bash vercel.sh and in my repo, the vercel.sh file looks like this: #!/bin/bash echo "VERCEL_ENV:…
Máté Antal
  • 157
  • 1
  • 21
5
votes
0 answers

Vercel Really Slow Server Response of Assets

I built a website with the help of Next.js. The website contains images and videos. The videos are autoplayed which means they are fetched immediately. The website has been deployed on Vercel. I experience big issues with the loading times of all…
JonWolf
  • 51
  • 2
5
votes
0 answers

NextAuth Email Provider returning Page Not Found + 404 on /api/auth/* + Client Fetch Error on Vercel

Problem I'm trying to use NextAuth's Email Provider to create an authentication endpoint. It works locally. However, I get redirected to "404 | Page not found" on sign in on our live site. This code used to work on Vercel a few days ago…
sciffany
  • 380
  • 1
  • 4
  • 12
5
votes
0 answers

How to pass arguments to filtered workspaces separately using Turborepo?

My use case is, I have two workspaces say foo and bar, and I want to pass the different command line args, is it possible to achieve such functionality with Turborepo. I want to do something like this: turbo run dev --filter="foo" -- --env=dev…
Victordanny
  • 85
  • 1
  • 8
5
votes
3 answers

Getting: "ESLint: Unable to resolve path to module '@vercel/analytics/react'.(import/no-unresolved)" but package & path inside is actually present

As the title says, ESLint is complaining with this error message: ESLint: Unable to resolve path to module '@vercel/analytics/react'.(import/no-unresolved) In the line: import { Analytics } from '@vercel/analytics/react'; When following the…
tmilar
  • 1,631
  • 15
  • 19