An open API service indexing awesome lists of open source software.

https://github.com/serhalp/repro-netlify-functions-path-wildcard

Verify behavior of wildcards in Netlify Functions config "path" option
https://github.com/serhalp/repro-netlify-functions-path-wildcard

Last synced: 8 months ago
JSON representation

Verify behavior of wildcards in Netlify Functions config "path" option

Awesome Lists containing this project

README

          

# Verifying Netlify Functions config `path` wildcard behavior

Verifying the behavior of Netlify Functions' `path` config option when a wildcard
is included.

To "repro":

1. Visit the root (`/`). This renders the static `index.html` page as expected
(`preferStatic: true` specified on function).
2. Visit any other path, e.g. `/foo-bar-baz`.

Expected: a page with the message "This was rendered by the 'hello' function"

Observed: a 404