fix: update baseUrl for prod
This commit is contained in:
1 parent
d086642ae2
commit
c605414f73
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
+1
-1
@@ -2,7 +2,7 @@ import axios, { AxiosResponse } from 'axios';
|
||||
|
||||
const client = axios.create({
|
||||
baseURL: `${process.env.NODE_ENV === 'development' ? 'http://' : 'https://'}${
|
||||
process.env.NEXT_PUBLIC_VERCEL_URL
|
||||
process.env.NEXT_PUBLIC_MOVIE_ADVISOR_BASE
|
||||
}/api`,
|
||||
withCredentials: true
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user