What is netlify.toml?
An overview of the netlify.toml file and its purpose in Netlify deployments.
Understanding netlify.toml
The netlify.toml file is a configuration file used in projects deployed on Netlify. It allows developers to define settings and options for their site, including build commands, publish directories, and redirects.
This file is typically placed in the root directory of your project and is written in TOML (Tom's Obvious, Minimal Language) format, which is easy to read and write.
Common Uses of netlify.toml
In the netlify.toml file, you can specify various settings such as the build command that Netlify should use to build your site, the directory where the built files are located, and any redirects or rewrites you want to implement.
For example, you can set up redirects to manage URL changes or to create friendly URLs for your users.
What isn't confirmed
The specific features and capabilities of the netlify.toml file can vary based on updates from Netlify, and not all potential uses may be documented or confirmed.
Where to verify
For the most accurate and up-to-date information regarding the netlify.toml file, you can refer to the official Netlify documentation at https://docs.netlify.com/configure-builds/file-based-configuration/#netlifytoml.