Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom content type not applied to ssr sites #4405

Closed
klaemo opened this issue Jul 19, 2024 · 1 comment · Fixed by sst/ion#722
Closed

Custom content type not applied to ssr sites #4405

klaemo opened this issue Jul 19, 2024 · 1 comment · Fixed by sst/ion#722
Assignees

Comments

@klaemo
Copy link
Contributor

klaemo commented Jul 19, 2024

Custom assets.fileOptions[].contentType values are not applied to the matched files.

{
  async run() {
    new sst.aws.Remix("Frontend", {
      assets: {
        fileOptions: [
          {
            files: "**/*.webmanifest",
            contentType: "application/manifest+json", // <- not applied
          },
          {
            files: ["assets/**/*.css", "assets/**/*.js"],
            cacheControl: "public,max-age=31536000,immutable",
          },
        ],
      },
    })
  },
}
@klaemo
Copy link
Contributor Author

klaemo commented Jul 19, 2024

Corresponding PR: sst/ion#722

@klaemo klaemo changed the title custom content type not applied to ssr sites Custom content type not applied to ssr sites Jul 19, 2024
@thdxr thdxr transferred this issue from sst/ion Oct 21, 2024
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 a pull request may close this issue.

2 participants