Simply embewd the following into your index.html
Into the <head>
<link href="https://brows3r-js.s3.eu-west-2.amazonaws.com/static/css/main.chunk.css" rel="stylesheet">
Into into the <body>
<div id="brows3r-root"></div>
<script>
window.BROWS3R = {
s3BucketName: "myBucket",
s3BucketRegion: "eu-west-1",
s3BucketUrl: "http://downloads.mywebsite.com",
getExtensionIconSrcFn: function(extension) {
switch (extension) {
case 'html':
return '/icons/api.svg';
default:
return '/icons/file.svg';
}
}
}
</script>
<script src="https://brows3r-js.s3.eu-west-2.amazonaws.com/static/js/bundle.js"></script>
<script src="https://brows3r-js.s3.eu-west-2.amazonaws.com/static/js/2.chunk.js"></script>
<script src="https://brows3r-js.s3.eu-west-2.amazonaws.com/static/js/main.chunk.js"></script>
At the moment, to host brows3r
, you'll need to deploy the contents of ./build
to the root of your s3 bucket
i.e.
$ aws s3 sync ./build s3://<BUCKET_NAME>