mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 12:08:11 +08:00
Set API path based on access address (#568)
* Make api paths relative * Remove request import * Set publicPath to be relative
This commit is contained in:
committed by
Charlotte Weaver
parent
b6f946ec8a
commit
0f8d7a55de
@@ -10,7 +10,7 @@ const nodeModules = path.resolve("node_modules");
|
||||
|
||||
const babelOptions = require("../babel/babel.prod");
|
||||
|
||||
const publicPath = "/";
|
||||
const publicPath = "";
|
||||
|
||||
module.exports = {
|
||||
mode: "production",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<script type="text/javascript">
|
||||
window.CELLXGENE = {};
|
||||
window.CELLXGENE.API = {
|
||||
prefix: "{{ prefix | safe }}",
|
||||
prefix: window.location.href + "api/",
|
||||
version: "v0.2/"
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user