[Portfolio][06] 극한의 반응형 적용해보기
by 한만섭
# Global settings applied to the whole site.
#
# “base” is the directory to change to before starting build. If you set base:
# that is where we will look for package.json/.nvmrc/etc, not repo root!
# “command” is your build command.
# “publish” is the directory to publish (relative to the root of your repo).
[build]
base = "site"
command = "make"
publish = "site/public"
# Production context: All deploys from the main
# repository branch will inherit these settings.
[context.production]
command = "make production"
[context.production.environment]
ACCESS_TOKEN = "super secret"
# Deploy Preview context: All deploys generated from a pull/merge request
# will inherit these settings.
[context.deploy-preview.environment]
ACCESS_TOKEN = "not so secret"
# Branch deploy context: All deploys that are not from a pull/merge request
# or from the production branch will inherit these settings.
[context.branch-deploy]
command = "make staging"
# Specific branch context: Deploys from this branch
# will take these settings and override their
# current ones.
[context.feature]
command = "make feature"
[context."features/branch"]
command = "gulp"
netlify.toml
# Global settings applied to the whole site.
#
# “base” is the directory to change to before starting build. If you set base:
# that is where we will look for package.json/.nvmrc/etc, not repo root!
# “command” is your build command.
# “publish” is the directory to publish (relative to the root of your repo).
[build]
base = "site"
command = "make"
publish = "site/public"
# Production context: All deploys from the main
# repository branch will inherit these settings.
[context.production]
command = "make production"
[context.production.environment]
ACCESS_TOKEN = "super secret"
# Deploy Preview context: All deploys generated from a pull/merge request
# will inherit these settings.
[context.deploy-preview.environment]
ACCESS_TOKEN = "not so secret"
REACT_APP_SLACK_WEB_TOKEN = "not no secret"
REACT_APP_SLACK_USER_TOKEN = "not no secret"
REACT_APP_FIREBASE_API_KEY = "not no secret"
# Branch deploy context: All deploys that are not from a pull/merge request
# or from the production branch will inherit these settings.
[context.branch-deploy]
command = "make staging"
# Specific branch context: Deploys from this branch
# will take these settings and override their
# current ones.
[context.feature]
command = "make feature"
[context."features/branch"]
command = "gulp"
위와 같이 파일을 생성해줍니다.
[context.deploy-preview.environment]
ACCESS_TOKEN = "not so secret"
REACT_APP_SLACK_WEB_TOKEN = "not no secret"
REACT_APP_SLACK_USER_TOKEN = "not no secret"
REACT_APP_FIREBASE_API_KEY = "not no secret"
제가 수정한 부분은 위 부분인데 netlify에 설정해준 환경변수 이름과 동일하게 사용해주면 됩니다.
Subscribe via RSS