You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue where configuring the MIME type for .webp images at the global IIS level doesn't seem to apply when my application is running via iisnode. However, adding the MIME type configuration to the project's web.config file solves the problem.
Steps to Reproduce:
Add .webp MIME type at the IIS server level.
Deploy a Next.js application using iisnode.
Try to access a .webp image through the browser.
Expected Behavior:
IIS should serve .webp images correctly based on the global MIME type configuration.
Actual Behavior:
IIS does not serve .webp images unless the MIME type is specified in the project's web.config file.
Workaround:
The issue can be resolved by adding the following to the web.config file within the project:
Description:
I have encountered an issue where configuring the MIME type for
.webp
images at the global IIS level doesn't seem to apply when my application is running via iisnode. However, adding the MIME type configuration to the project'sweb.config
file solves the problem.Steps to Reproduce:
.webp
MIME type at the IIS server level..webp
image through the browser.Expected Behavior:
IIS should serve
.webp
images correctly based on the global MIME type configuration.Actual Behavior:
IIS does not serve
.webp
images unless the MIME type is specified in the project'sweb.config
file.Workaround:
The issue can be resolved by adding the following to the
web.config
file within the project:Environment:
IIS version: 10.0.20348.1
iisnode version: 0.2.21
Next.js version: 13.5.6
Operating System: Windows Server 2022 Standard v10.0.20348 Build 20348
The text was updated successfully, but these errors were encountered: