How do I make the Build UI and TOML files match when site is deployed from subfolder?

I am using continuous Github deployments.

The site I’m deploying is not contained in the parent folder. It’s contained in a subfolder named “app”.

As such, this is how I have setup my Build settings in the UI:

The toml file is also located within that app folder.

So I’m wondering how it is supposed to look.

Should it be like this?

# example netlify.toml 
[build]
  command = "npm run build"
  functions = "netlify/functions"
  publish = "dist"

Or should it be like this?

# example netlify.toml 
[build]
  command = "npm run build"
  functions = "app/netlify/functions"
  publish = "app/dist"

Hi @Abba,

As long as TOML is located in the app folder, the first snippet is the correct one.

1 Like