-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
build / image import broken #498
Comments
Thanks for reporting. |
I will give it a look, maybe I can fix it. |
Fixed the Problem in the ClientBuild - all tests and my new one are green, but I do not know if my change has any other side effects as my code will define all assets with extension !== '.js' as assets which need to be copied to the public asset folder. |
Nice!
I don't know either. Is it possible that a |
Based on the current process I agree with you on the possibility too leak assets to a public folder, but you need to know the hash. And there are valid cases where I fetch an asset (e.g. json) on the client from the server. I have no idea on how to distinguish between assets which are referenced in the rendered rsc output of an server component(e.g image tag, link tag to a json) and an json file where the content was processed in a server component. |
These are the rules for public assets:
Is this parcel api an option to solve this: |
Okay, let's assume all assets are public by default. |
an image imported in a server component is missing in the
dist/public/assets
folder.It exists in the
dist/assets/sample-Xox1zmov.jpg
which is not served by the static server.Waku Commit: e85380c519a899244c548c460de1d0152efdabbc
The text was updated successfully, but these errors were encountered: