Netlify.toml on Next 14

I have two recent sites using Next 14.2.5. Neither of these will use a netlify.toml in the root directory to add headers. How do I go about getting this to work. Here is a simple example of my file:

[[headers]]
  for = "/*"
  [headers.values]
    X-Frame-Options = "DENY"
    Referrer-Policy = "no-referrer"

Add the headers in your next.config.js