I am running into an issue when trying to set the base directory for my site through the netlify.toml file. The publish directory and build commands, however, are being picked up. I am trying to deploy the site through Git, specifically Github. When I walk through the create a new site UI I see the publish directory and build command values coming through but do not see the base directory.
I then click the deploy site and navigate to the “Build and Deploy” tab in site settings. On this page I would expect to see the base directory value populated but instead see “Not Set”.
I have searched the forums and tried several different configurations to no avail. Here is my netlify.toml file:
# 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 = "frontend/" # 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 = "frontend/build/" # Default build command. command = "npm run-script build" # The following redirect is intended for use with most SPAs that handle # routing internally. [[redirects]] from = "/*" to = "/index.html" status = 200
I appreciate the help.