Is it possible to trigger a Netlify function on page 404?

No, you can’t redirect from a #, because the # is handled by the browser as pointed out in your previous thread. The # would never make it to the function in the first place.

Not everything. Only paths that do not exist. If you added force = true, then eveything would.

This wouldn’t necessarily get expensive. Even the Starter Tier has 125k function invocations a month.

1 Like