-
Notifications
You must be signed in to change notification settings - Fork 24
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
Asset path broken for some assets #80
Comments
@sigma-andex can you share an example of this happening? IT could be your current project or a trimmed down version that reproduces the issue? |
I'm seeing something similar, I'm importing files from the root index path, and a few other pages under an example image path looks like: usage is as follows: import imageUrl from '~/assets/homepage/example.png`
export default function Route() {
return <img src={imageUrl} />
} on the platform page the resolved url looks something like: I'm using the new vercelPreset for remix + vite |
CC: @TooTallNate |
@lifeiscontent I can not reproduce. Can you share your repository? |
@TooTallNate yep, I'll put something together in the next hour or so. Thanks! |
@TooTallNate here you go: lifeiscontent/remix-vercel-deploy-issue#1 let me know if you need any more context, I'm also available via discord at lifeiscontent if you'd like to chat further. Thanks again! |
@TooTallNate I actually ended up figuring this out, I guess with vite, url handling is a little bit different, if I add a |
Ok cool, sounds like this one can be closed then.
Yes, I would like to add support for this. Follow the original issue for updates. |
I'm trying to deploy a remix app (2.6.0) to vercel, but for some reason the assets are deployed to
/build/vercel/path0/_assets/
and/build/_assets/
. Unfortunately though, some of the assets (some pngs, but not all) are only deployed to/build/vercel/path0/_assets/
and therefore not found on my website. I have no idea why this happens and why it is only some of the pngs but not all. I have them in/app/assets
but also tried/public
and next to the importing tsx file.The text was updated successfully, but these errors were encountered: