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

One Repository With Multiple Deployments, Environment Variables, and Secrets on Vercel?

I'm doing some early research for a project I plan to deploy to Vercel. I am wondering if the following is possible: I want to have on GitHub repository. This repository will use environment variables for API tokens, and basic settings. I have three…
user12944748
8
votes
3 answers

Use absolute imports in Next.js app deployed with ZEIT Now

In the Next.js 9 tutorial the suggested way to import shared components is by relative paths, like import Header from '../components/Header'; I want to use absolute imports, like import Header from 'components/Header'; How do I make this work both…
ArneHugo
  • 6,051
  • 1
  • 26
  • 47
7
votes
2 answers

Nextjs 13 is insanely slow in dev environment

I will be very brief: I recently switched to Nextjs 13 and I noticed it's insanely slow when I run my app on localhost via npm run dev Pages even take 10 seconds and sometimes even longer to load, how it is possible? To all who use Nextjs: do you…
DaMatt91
  • 544
  • 1
  • 7
  • 18
7
votes
2 answers

Error: $VARIABLE is not listed as a dependency in turbo.json

I'm not able to solve an error which is mentioned in the title: Error: $VARIABLE is not listed as a dependency in turbo.json When I run npm run build I get errors for 2 variables and not for all of them that's what is strange to me... Error:…
Floky99
  • 562
  • 2
  • 8
  • 17
7
votes
2 answers

Turborepo Eslint config not applying

I created a Turborepo testing project and I wanted to try if ESlint config that it's set in the root of the Turborepo applies to all of the projects inside my /apps folder, turns out it does not work for me... Where did I mess up ? I was following…
Floky99
  • 562
  • 2
  • 8
  • 17
7
votes
3 answers

Vercel build error, Unable to find lambda for route

I am trying to build and deploy a NextJS application using the Vercel CLI. The strategy is to pre-build and then deploy the pre-built artifacts. vercel build vercel deploy --prebuilt I am getting the following errors: Any help would be much…
Jonathan Dsouza
  • 568
  • 1
  • 5
  • 17
7
votes
1 answer

NextJS Vercel deployment error Nested Middleware is not allowed, found: pages/_middleware

All of a sudden my middleware stopped working in deployment. The error is: > Build error occurred NestedMiddlewareError: Nested Middleware is not allowed, found: pages/_middleware Please move your code to a single file at /middleware…
Floky99
  • 562
  • 2
  • 8
  • 17
7
votes
1 answer

Vue router works on dev server but not on vercel vite

I'm making a project using vite which uses vue-router@4. It works all fine but when viewing the links on vercel or netlify, i get a 404 error. Here is my index.js file (setup for router) import { createRouter, createWebHistory } from…
PaddyCooper08
  • 111
  • 2
  • 6
7
votes
4 answers

Nextjs build failing because of jsonwebtoken in _middleware.ts

Would love some help on a Vercel deployment. I created a _middleware.ts file that checks a JWT that a user has in their cookie. import { NextResponse } from 'next/server' import type { NextRequest } from 'next/server' import { JwtPayload, verify }…
Dimitri Borgers
  • 328
  • 4
  • 15
7
votes
2 answers

How can I resolve ReactMarkDown that uses "children" as a prop w/ Error Do not pass children as props

I have a Next.js app that I'm deploying to vercel and am using ReactMarkDown component to render some content from a Strapi backend. While this works locally, deployment fails with the following log: 49:54 Error: Do not pass children as props.…
darkecho2788
  • 85
  • 1
  • 7
7
votes
2 answers

React.js (Vite) application returns 404 on return in monorepository

Nevermind... Mistake was related to the codebase (where I'm using monorepo and vercel.json was on the root directory. After moving vercel.js to package with react application everything was working perfectly. The 404 Problem I have a simple…
keinsell
  • 426
  • 5
  • 16
7
votes
8 answers

NextJs vercel deployment error "routes-manifest.json" couldn't be found

My nextjs app was working properly I added some files to update my code now it is not deploying my app on vercel. gives this error I tried googling the error but my case in unique. This is the git…
usman mughal
  • 189
  • 1
  • 3
  • 7
7
votes
1 answer

@parcel/core: No transformers found for .glb file

I'm getting this error when I deploy my parcel.js to Vercel: @parcel/core: No transformers found for static/actions.glb. Here's the full deployment logs from Vercel: Detected package.json Installing dependencies... Detected `package-lock.json`…
awawawaw
  • 175
  • 3
  • 11
7
votes
3 answers

NextJs Next.config.mjs import local constant file

Importing local files in next.config The issue Hi, The issue we are facing is wanting to create a dynamic next config. This works fine when we do not import any files but when trying to import a constant file in the next.config.mjs, things break. We…
Wesley Janse
  • 1,244
  • 1
  • 7
  • 14
7
votes
7 answers

NextJs: The Serverless Function exceeds the maximum size limit of 50mb

I'm new working with NextJs and when trying to deploy my project to Vercel I'm getting the following error: Error! The Serverless Function "api/auth" is 50.55mb which exceeds the maximum size limit of 50mb. I have spent a lot of my time trying to…
DrunkOldDog
  • 718
  • 5
  • 12