config.json from URL #4000
-
Hi, I'm running jbrowse2 using npm. I'm wondering if it is possible to load the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@johannesnicolaus this should be fine, as long as the server that you load the config.json file from supports CORS properly. I believe "github pages" sites allow CORS. so from jbrowse2's perspective, using something like http://yoursite.com/jbrowse2/?config=http://someothersite/config.json (where someother site would probably be a yourusername.github.io/ in the github pages case) that is fine you could also deploy jbrowse entirely on e.g. github pages. this is also allowed, as jbrowse2 does not technically need a server side, but it just depends on how you set up things |
Beta Was this translation helpful? Give feedback.
-
this was now added in v2.8.0, it is a little cumbersome but if you manually edit the index.html of the jbrowse-web instance to have something like this <script>
window.__jbrowseConfigPath="...your config.json path here"
</script> then it will be used |
Beta Was this translation helpful? Give feedback.
this was now added in v2.8.0, it is a little cumbersome but if you manually edit the index.html of the jbrowse-web instance to have something like this
then it will be used