netlify serverless
1. Setup #
ntl dev
2. Create a simple function #
3. Add redirects #
netlify.toml
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
ntl dev
netlify.toml
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200