NextJS DEV 환경에서 static indicator 없애기

힘센캥거루
2025년 1월 2일
50
nextjs

대화창을 하나 만들고 개발하려는데 Static route라고 되어 있는 저 번개모양 아이콘이 상당히 거슬렸다.

어떻게 없애나 찾아봤는데 적혀있는게 없었다.

NextJS DEV 환경에서 static indicator 없애기-1

결국은 공식 문서로 향함...

찾아보니까 있다. [링크]

역시 형이야!

NextJS DEV 환경에서 static indicator 없애기-2

import type { NextConfig } from 'next'
 
const nextConfig: NextConfig = {
  devIndicators: {
    appIsrStatus: false,
  },
}
 
export default nextConfig

이렇게 적용하고 나니 버튼이 없어졌다.

속이 시원하다.

NextJS DEV 환경에서 static indicator 없애기-3

댓글을 불러오는 중...