iisnode encountered an error when processing the request.

HRESULT: 0x2
HTTP status: 500
HTTP subStatus: 1002
HTTP reason: Internal Server Error

You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.

In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.

The last 64k of the output generated by the node.exe process to stderr is shown below:

- warn Invalid next.config.js options detected: 
- warn     The value at .i18n has an unexpected property, debug, which is not in the list of allowed properties (defaultLocale, domains, localeDetection, locales).
- warn See more info here: https://nextjs.org/docs/messages/invalid-next-config
- warn You have enabled experimental feature (esmExternals) in next.config.js.
- warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.