Netlify Functions and a better base URL for them

Posted on October 4, 2021

This is my setup for Netlify Functions using a redirect wildcard to get a nicer URL:

[build]
  publish = "dist"
  functions = "src/functions"

[[redirects]]
  from = "/f/*"
  to = "/.netlify/functions/:splat"
  status = 200

So, instead of calling:

it's a much better: