frontend: Configure base-href and router with PUBLIC_URL

This commit is contained in:
Paul Bienkowski 2021-02-28 22:11:32 +01:00
parent 2c5ba1d5a0
commit e10b29e0c6
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="%PUBLIC_URL%">
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

View file

@ -20,7 +20,7 @@ import {LoginButton} from 'components'
const App = connect((state) => ({login: state.login}))(function App({login}) {
return (
<Router>
<Router basename={process.env.PUBLIC_URL || '/'}>
<div className={styles.App}>
<header className={styles.headline}>
<div className={styles.header}>