frontend: Configure base-href and router with PUBLIC_URL
This commit is contained in:
parent
2c5ba1d5a0
commit
e10b29e0c6
|
@ -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" />
|
||||
|
|
|
@ -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}>
|
||||
|
|
Loading…
Reference in a new issue