I am trying to add shared assets between apps from a custom Package so I use api.addAssets() into my custom package.
Everything is good so far and I can see the package’s assets deployed in .meteor/local/build/programs/server/assets/packages/author_packagename/assets/somefile.txt
The problem is that I cannot access this asset file from my main application using:
From the official doc https://docs.meteor.com/api/assets.html I can see:
Note: Packages can only access their own assets. If you need to read the assets of a different package, or of the enclosing app, you need to get a reference to that package’s Assets object.
I also tried to find the reference to the Asset object using Package[‘author:packagename’] but didn’t work as well…
I think the documentation be updated to provide an example…
Any idea how can get a reference to the package’s Assets object ?