Skip to content

Instantly share code, notes, and snippets.

@joshuablum
Created July 26, 2022 16:46
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 joshuablum/845d6af82c710a9b9d8f1a57618f213d to your computer and use it in GitHub Desktop.
Save joshuablum/845d6af82c710a9b9d8f1a57618f213d to your computer and use it in GitHub Desktop.
`netlify.toml` file for deploying Statamic to Netlify
# 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/composer.json/etc.
# If not set, defaults to the root directory.
base = "./"
# Directory that contains the deploy-ready HTML files and
# assets generated by the build. This is relative to the base
# directory if one has been set, or the root directory if
# a base has not been set. This sample publishes the directory
# located at the absolute path "root/project/build-output"
publish = "./storage/app/static"
# Default build command.
command = "composer build"
[context.production.environment]
#PHP_VERSION="8.0"
[[headers]]
for = "/sitemap.xml"
[headers.values]
Content-Type = "application/xml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment