-
Notifications
You must be signed in to change notification settings - Fork 377
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
[Bug?]: Assets with names containing international characters don't work in prod on cloudflare-pages #1607
Comments
I think this is actually an issue with cloudflare pages. I'm not using SolidJS, but I managed to reproduce it yesterday when deploying a pages app with different wrangler versions, a directory I have was getting uploaded with a unicode character on its filename ( Both deployment and GET requests with url-encoding were working fine for months until this last deployment (which was the first deployment in a few weeks). Luckily when I downgraded wrangler to 3.67.1 it worked for me, but I think it was just a coincidence as it later failed with 3.67.1 and now it's working even with 3.73.0.
@neehhaa06 it that link correct? It's pointing to this same issue |
It works correctly using Astro. https://anydrop.com/ is just a basic astro app deployed with
|
Hey, I probably wasn't clear enough, but from my experience this is an issue that happens sometimes when uploading files to Cloudflare Pages. I'm not using solid, but I have an app that worked correctly for months, except that on some of my last deployments my file names got incorrectly changed. My file path changed from something like My guess is that you got unlucky with your Solid deployment, but lucky with Astro. To confirm that, I suggest that you try verifying the files that got uploaded to Cloudflare Pages.
Another thing you can try is deploying again now and see if it happens to work (you can deploy to a preview branch by adding e.g. My guess is that there's some Cloudflare server that's misconfigured or running different software/version that's screwing up the encoding. |
Duplicates
Latest version
Current behavior 😯
Assets named with international characters do not load in prod, at least when using the
cloudflare-pages
preset.Expected behavior 🤔
Assets named with international characters work consistently in dev and prod using any preset.
Steps to reproduce 🕹
Steps:
src/assets/서아.webp
andsrc/assets/seoa.webp
existimg
tagsseoa.webp
image loads correctly while the서아.webp
image is broken.I haven't yet tested this using other presets so I'm not sure whether or not this issue is exclusive to
cloudflare-pages
.Context 🔦
I am trying to import images such as
서아.webp
named with international characters and use them inimg
tags.Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: