Hi everyone,
I’m refactoring a project I’ve been working on to a package based architecture to help out as it grows. I’m having a problem figuring out where to place my static assets in a package. The /public folder doesn’t seem to work inside a package. Has anyone else had this issue? What did you do to fix it?
Thanks,
Brandon
Yes that worked. Thank you!
Edit: I initially thought it was working fine, but there appears to be a load order issue with some routes. When I navigate to the app initially, all of the static assets appear to load. After navigating to a few different routes, and then returning to root route, those static assets appear to load after the templates, causing them to appear as failed links (when I inspect, the assets are still there). Does anyone have any ideas why the load order changes as I navigate around the app?
Edit2: I figured out my error. I was missing a ‘/’ at the beginning of the path.