https://vercel.com/

 

Develop. Preview. Ship. For the best frontend teams – Vercel

Deploy web projects with the best frontend developer experience and highest end-user performance.

vercel.com

 

Vercel로 간단하게 Nuxt 프로젝트를 배포하는 방법에 대해서 정리

 

1. Vercel 설치

 

 

yarn global add vercel

npm i -g vercel

 

 

2. 환경 변수 설정

 

 

yarn : C:\Users\i\AppData\Local\Yarn\bin 추가

 

vercel -v

 

 

3. now.json 추가

 

프로젝트에 다음파일을 만들어 내용을 추가해주면 된다.

{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/vercel-builder",
      "config": {}
    }
  ]
}

 

 

4. 배포

 

vercel .

 

 

5. 환경변수 설정

 

https://vercel.com/docs/concepts/projects/environment-variables

'Front-End > Vue & Nuxt' 카테고리의 다른 글

Nuxt.js Transition  (0) 2022.02.26
Nuxt 라이브러리 적용  (0) 2022.02.15
Nuxt-2 ezst nuxt.config.js  (0) 2022.01.30
Hide Navbar on Scroll Down in Vue  (0) 2022.01.05
Nuxt.js Async, Fetch  (0) 2022.01.05

+ Recent posts