Skip to content

fix(nginx): add comprehensive MIME type mappings#348

Merged
sharevb merged 2 commits intosharevb:chore/all-my-stuffsfrom
dragonish:pr/nginx
Apr 12, 2026
Merged

fix(nginx): add comprehensive MIME type mappings#348
sharevb merged 2 commits intosharevb:chore/all-my-stuffsfrom
dragonish:pr/nginx

Conversation

@dragonish
Copy link
Copy Markdown

Change description

  • Expanded types directive with complete MIME type definitions.
  • Added mappings for common file types including HTML, CSS, images, fonts, documents, videos, audio, and archives.
  • Replaced minimal JavaScript-only configuration with full nginx default types.

Reason

The changes in #347 caused the default Nginx types block to be overridden. This resulted in all other resources (such as HTML files) having their Content-Type response header incorrectly set to application/octet-stream after building the Docker image, preventing them from functioning properly.

- Expanded types directive with complete MIME type definitions.
- Added mappings for common file types including HTML, CSS, images,
fonts, documents, videos, audio, and archives.
- Replaced minimal JavaScript-only configuration with full nginx
default types.
@sharevb
Copy link
Copy Markdown
Owner

sharevb commented Apr 12, 2026

Hi @dragonish many thanks for this PR, I merged previous too early, could it be better to do something like that : storybookjs/storybook#20157 (comment)

Removed numerous MIME type definitions and added include for mime.types.
@sharevb sharevb merged commit 44fde0e into sharevb:chore/all-my-stuffs Apr 12, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants