Skip to content

Instantly share code, notes, and snippets.

@praveev
Created May 5, 2020 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praveev/a1595506c8ff571701395a70b9fd04a5 to your computer and use it in GitHub Desktop.
Save praveev/a1595506c8ff571701395a70b9fd04a5 to your computer and use it in GitHub Desktop.
netlify toml
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = ""
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "dist/"
# Default build command.
command = "yarn build"
# Directory with the serverless Lambda functions to deploy to AWS.
functions = "functions/"
[dev]
framework = "#auto"
command = "yarn start" # Command to start your dev server
functions = "functions/"
# Redirects and headers are GLOBAL for all builds – they do not get scoped to
# contexts no matter where you define them in the file.
# For context-specific rules, use _headers or _redirects files, which are
# PER-DEPLOY.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment