-
기본은 3000이다.
방법1 npm에 port
npm run dev -- --port 3002
방법2 package.json
"scripts": { "dev": "next dev -p 3001", ... }
'NextJs' 카테고리의 다른 글
UseEffect Ex3 (0) 2023.01.10 UseEffect Ex2 (0) 2023.01.10 UseEffect Ex1 (0) 2023.01.10 Cookie Ex1 (0) 2023.01.08 Warning: Prop `className` did not match. (0) 2022.12.25 Server side, Client side 실행 환경 (0) 2022.12.24 Nextjs 환경 변수(.env) (0) 2022.12.24 Nextjs 환경 변수 접두사 NEXT_PUBLIC_ (0) 2022.12.24