トップに戻る
tags
src/types/env.d.ts ( ファイル名やディレクトリはどこでもokです )
declare namespace NodeJS { interface ProcessEnv { readonly APP_NAME: string; readonly NEXT_PUBLIC_APP_NAME: string; } }
.env
# APP APP_NAME=アプリ名 NEXT_PUBLIC_APP_NAME=${APP_NAME}
引用 : https://bit.ly/3OcVU7p
edit