Using netlify.toml in local development?

We have a GastbyJS project that’s hosted on Netlify. We have a netlify.toml configuration file with a lot of redirects and headers set up. An example of one:

from = "/dpa"
to = "/legal/dpa"

Is there a way to use this file in local development? I tried searching for an open source Gastby plugin that would apply this file as local middleware (using Gatsby’s onCreateDevServer middleware hook), but couldn’t find one.

Have you checked out Netlify Dev?

1 Like

I did not know about that. That should work. Thanks!