We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Currently CloudFront request function redirects .wasm files to /index.html (https://github.com/getlift/lift/blob/master/src/constructs/aws/SinglePageApp.ts#L48)
This makes the .wasm files load as HTML, which means that .wasm file is not loaded properly.
Adding wasm to REDIRECT_INDEX seems to fix this problem.
No response
Add wasm to REDIRECT_REGEX:
var REDIRECT_REGEX = /^[^.]+$|.(?!(css|gif|ico|jpg|jpeg|js|png|txt|svg|woff|woff2|ttf|map|json|webp|xml|pdf|webmanifest|avif|wasm)$)([^.]+$)/;
This seems to fix the issue.
The text was updated successfully, but these errors were encountered:
Hi, thanks for the report, feel free to send a pull request.
Sorry, something went wrong.
No branches or pull requests
Start from the Use-case
Hello,
Currently CloudFront request function redirects .wasm files to /index.html (https://github.com/getlift/lift/blob/master/src/constructs/aws/SinglePageApp.ts#L48)
This makes the .wasm files load as HTML, which means that .wasm file is not loaded properly.
Adding wasm to REDIRECT_INDEX seems to fix this problem.
Example Config
No response
Implementation Idea
Add wasm to REDIRECT_REGEX:
var REDIRECT_REGEX = /^[^.]+$|.(?!(css|gif|ico|jpg|jpeg|js|png|txt|svg|woff|woff2|ttf|map|json|webp|xml|pdf|webmanifest|avif|wasm)$)([^.]+$)/;
This seems to fix the issue.
The text was updated successfully, but these errors were encountered: