cv icon indicating copy to clipboard operation
cv copied to clipboard

Vercel deployment.

Open ianhobbs opened this issue 1 year ago • 1 comments

Sorry it's my first deployment in V.

Getting this error in Vercel.

Running "yarn dev"
yarn run v1.22.17
$ next dev
 ⚠ You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env
   ▲ Next.js 14.0.4
   - Local:        http://localhost:3000

I presume it's the lack of .env ?

ianhobbs avatar Dec 29 '23 22:12 ianhobbs

Issue #27

It happens when the default PORT from Next.js is unavailable in the Vercel Environment. Checking any of the deployed sites that have 3000 PORT in use.

Also, making a .env will not help for now due to the system requirements that may cause it to fail in the production environment.

https://github.com/vercel/next.js/issues/56948

https://github.com/vercel/next.js/discussions/58523

aalu-love avatar Dec 30 '23 18:12 aalu-love

I'm not sure how did you link github and vercel. What I did is:

  1. add a new project on vercel,
  2. select next.js,
  3. create a new github repo,
  4. git clone the new repo to local and delete everything but .git folder,
  5. copy your modified BartoszJarocki/cv to the new local repo fold and git push,
  6. after about 3 minutes vercel will complete the deployment.

https://nextjs-cc-pi.vercel.app/

feiyihx avatar Dec 31 '23 09:12 feiyihx

sorted it. No config required. Just hoist and go. Thanks. I had wired up custom build etc in the config but it's not needed.

ianhobbs avatar Jan 01 '24 07:01 ianhobbs