fix: update baseUrl for prod

This commit is contained in:
ner committed 2023-08-05 13:02:13 +03:00
1 parent d086642ae2
commit c605414f73
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
This is [Movie advisor](https://nextjs.org/), project which can help you find movie for your lonely evening. This is [Movie advisor](https://movie-advisor.vercel.app/), project which can help you find movie for your lonely evening.
Powered by [NextJS](https://nextjs.org/), [TMDB](https://developer.themoviedb.org/docs) and a little bit [OpenAI](https://openai.com/blog/openai-api) Powered by [NextJS](https://nextjs.org/), [TMDB](https://developer.themoviedb.org/docs) and a little bit [OpenAI](https://openai.com/blog/openai-api)
+1 -1
View File
@@ -2,7 +2,7 @@ import axios, { AxiosResponse } from 'axios';
const client = axios.create({ const client = axios.create({
baseURL: `${process.env.NODE_ENV === 'development' ? 'http://' : 'https://'}${ baseURL: `${process.env.NODE_ENV === 'development' ? 'http://' : 'https://'}${
process.env.NEXT_PUBLIC_VERCEL_URL process.env.NEXT_PUBLIC_MOVIE_ADVISOR_BASE
}/api`, }/api`,
withCredentials: true withCredentials: true
}); });