質問するログイン新規登録

回答編集履歴

1

環境変数の定義が間違っていた

2019/07/24 13:30

投稿

hirontan
hirontan

スコア195

answer CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ```
8
8
  const client = axios.create({
9
- baseURL: process.env.API_URL
9
+ baseURL: process.env.REACT_APP_API_URL
10
10
  })
11
11
  client.get('/api/article/' + this.props.match.params.id)
12
12
  .then(response => {