fix: prod baseUrl

This commit is contained in:
ner committed 2023-08-19 13:41:37 +03:00
1 parent ff506e755c
commit 02c17f8679
1 file changed
+1 -1
+1 -1
View File
@@ -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