Justin Vandenberg
Justin Vandenberg
WWasp
Created by Justin Vandenberg on 12/5/2024 in #đŸ™‹questions
How to access public assets on both server and client?
Thank you! I'll report back here with my findings for future reference.
14 replies
WWasp
Created by Justin Vandenberg on 12/5/2024 in #đŸ™‹questions
How to access public assets on both server and client?
I'll have to see if I can get that working. I think your approach would be better if I can get that path ironed out. It looks like the paths are originating in .wasp/out/server/bundle in dev. The work around I got working today was to copy those files when the Docker container is being built. I've got this in my user-defined Dockerfile.
COPY web-app/public/animations /app/.wasp/build/web-app/public/animations
COPY web-app/public/animations /app/.wasp/build/web-app/public/animations
14 replies
WWasp
Created by Justin Vandenberg on 12/5/2024 in #đŸ™‹questions
How to access public assets on both server and client?
I don't see the directory being compiled in the the out directory (it does appear in the build directory). Correct me if I'm wrong, but that would only work when built, right?
14 replies
WWasp
Created by Justin Vandenberg on 12/5/2024 in #đŸ™‹questions
How to access public assets on both server and client?
I did try something similar to the json approach the bot mentioned, but the json file doesn't seem to be complied and/or can't be resolved.
14 replies