fix: prod baseUrl
This commit is contained in:
1 parent
ff506e755c
commit
02c17f8679
1 file changed
+1
-1
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import axios, { AxiosResponse } from 'axios';
|
import axios, { AxiosResponse } from 'axios';
|
||||||
|
|
||||||
const client = axios.create({
|
const client = axios.create({
|
||||||
baseURL: `${process.env.NODE_ENV === 'development' ? 'http://' : 'http://'}${
|
baseURL: `${process.env.NODE_ENV === 'development' ? 'http://' : 'https://'}${
|
||||||
process.env.NEXT_PUBLIC_MOVIE_ADVISOR_BASE
|
process.env.NEXT_PUBLIC_MOVIE_ADVISOR_BASE
|
||||||
}/api`,
|
}/api`,
|
||||||
withCredentials: true
|
withCredentials: true
|
||||||
|
|||||||
Reference in new issue
Block a user