We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a34ffe4 + eb21f5a commit 9f878faCopy full SHA for 9f878fa
.env
@@ -1 +1,2 @@
1
-CHOKIDAR_USEPOLLING=true
+CHOKIDAR_USEPOLLING=true
2
+PUBLIC_URL=https://samuel27m.github.io/react-todo
src/layouts/Header.js
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
3
class Header extends Component {
4
render() {
5
+ console.log(process.env);
6
return (
7
<header>
8
<div className='collapse bg-dark' id='navbarHeader'>
@@ -49,7 +50,7 @@ class Header extends Component {
49
50
<div className='navbar navbar-dark bg-dark shadow-sm'>
51
<div className='container d-flex justify-content-between'>
52
<a
- href='/'
53
+ href={process.env.PUBLIC_URL + '/'}
54
className='navbar-brand d-flex align-items-center'
55
>
56
<strong>React TODO</strong>
0 commit comments