Tweaked the contents of env variables, read more
NEWS_URI and AUTH_URI had the end of their routes lopped off, so I could reference /admin using either one of them.
This commit is contained in:
@@ -6,7 +6,7 @@ const NewsFeed = props => {
|
||||
const [articles, setArticles] = useState([]);
|
||||
|
||||
useEffect(async () => {
|
||||
const result = await fetch(props.uri, {
|
||||
const result = await fetch(`${process.env.NEWS_URI}/news`, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user