You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/article/2025-07/nextjs-inject-env/page.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,7 +297,8 @@ Next.js가 공식적으로 추천하는 방법은 [getServerSideProps](https://n
297
297
298
298
## 번외
299
299
300
-
`env.js` 파일을 생성할 때 [instrumentation.ts 파일](https://nextjs.org/docs/pages/guides/instrumentation)([App Router](https://nextjs.org/docs/app/guides/instrumentation))을 사용할 수도 있겠습니다. 저는 에너지가 다했으니 여러분이 한번 시도 해주세요...
300
+
-`env.js` 파일을 생성할 때 [instrumentation.ts 파일](https://nextjs.org/docs/pages/guides/instrumentation)([App Router](https://nextjs.org/docs/app/guides/instrumentation))을 사용할 수도 있겠습니다. 저는 에너지가 다했으니 여러분이 한번 시도 해주세요...
301
+
- 써놓고 보니 [kakao ENT. 테크 블로그의 글 - Runtime 환경 변수 설정으로 빌드 프로세스 개선하기](https://tech.kakaoent.com/front-end/2022/220505-runtime-environment/) 과 상당히 유사하네요. 여기서는 `.env` 파일 생성도 스크립트로 넣었습니다. 참조해주시면 좋을 것 같습니다.
301
302
302
303
## 레퍼런스
303
304
@@ -308,3 +309,4 @@ Next.js가 공식적으로 추천하는 방법은 [getServerSideProps](https://n
-[`NEXT_PUBLIC_` 환경변수를 빌드 이후에 수정할 순 없나? 함께 알아보자.(by Jihan)](https://velog.io/@bbbjihan/NEXTPUBLIC-%ED%99%98%EA%B2%BD%EB%B3%80%EC%88%98%EB%A5%BC-%EB%B9%8C%EB%93%9C-%EC%9D%B4%ED%9B%84%EC%97%90-%EC%88%98%EC%A0%95%ED%95%A0-%EC%88%9C-%EC%97%86%EB%82%98-%ED%95%A8%EA%BB%98-%EC%95%8C%EC%95%84%EB%B3%B4%EC%9E%90)
0 commit comments