Receiving internal server error on site load

We’ve been consistently encountering the following error after introducing a Netlify serverless function named upload-file-s3.js:

Error – Request ID: 01K15ETCYSV9G91WMA779HF897

Our current netlify.toml configuration is:

[build]
functions = “netlify/functions”

[dev]
functions = “netlify/functions”
command = “npm start”

[[redirects]]
from = “/*”
to = “/index.html”
status = 200

Despite this configuration, we’re observing that all page loads are being routed through the serverless function, resulting in an internal server error (screenshot attached).

We request you to please look into this as a priority and guide us on the necessary steps to resolve this issue, as well as how we can avoid such behaviour going forward.

For now, we have temporarily moved away from using Netlify serverless functions until this issue is resolved.

The reported issue here appears to have been caused by this incident: