Is it possible to point my meteor app’s “public” folder to an external data source, like an s3 bucket?
Ideally i’d want to just set an environment variable like METEOR_PUBLIC_URL=http://s3.amazonaws.com/bucket/
and have all requests for files come from that bucket. Is something like that possible, or would I have to update all my file urls to pull from an environment variable i.e:
settings.json
---
BUCKET_URL=http://s3.amazonaws.com/bucket
template.jsx
---
let bucket = Meteor.settings.BUCKET_URL;
return(
<img src={bucket}/image.jpg/>
)