Serves static assets from each dataset root URL and switch the publicPath to be a relative path. (#1786)

This commit is contained in:
maniarathi
2020-08-22 10:04:40 -07:00
committed by GitHub
parent bc150a8469
commit 5dfe0043c3
3 changed files with 17 additions and 4 deletions
@@ -7,7 +7,7 @@ const ScriptExtHtmlWebpackPlugin = require("script-ext-html-webpack-plugin");
const src = path.resolve("src");
const nodeModules = path.resolve("node_modules");
const publicPath = "/";
const publicPath = "";
const rawObsoleteHTMLTemplate = fs.readFileSync(
`${__dirname}/obsoleteHTMLTemplate.html`,
+1 -1
View File
@@ -19,7 +19,7 @@ const Auth = React.memo((props) => {
type="button"
data-testid="auth-button"
disabled={false}
icon={!userinfo["is_authenticated"] ? "log-in" : "log-out"}
icon={!userinfo.is_authenticated ? "log-in" : "log-out"}
href={!userinfo.is_authenticated ? auth.login : auth.logout}
>
{!userinfo.is_authenticated ? "Log In" : "Log Out"}