diff --git a/Dockerfile b/Dockerfile index 3d7d975..7a96032 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,8 @@ USER appuser EXPOSE 3000 ENV PORT=3000 ENV HOSTNAME="0.0.0.0" -ENV NEXT_PUBLIC_API_BASE_URL=https://api.danakcorp.com/ +ENV NEXT_PUBLIC_BASE_URL=https://api.danakcorp.com +ENV NEXT_PUBLIC_TOKEN_NAME=dsc_refresh_token +ENV NEXT_PUBLIC_TOKEN_NAME=dsc_token CMD ["node", "server.js"] \ No newline at end of file diff --git a/src/config/axios.ts b/src/config/axios.ts index 6b4fb22..1d0f203 100644 --- a/src/config/axios.ts +++ b/src/config/axios.ts @@ -4,7 +4,7 @@ import { getToken } from "./func"; const axiosInstance = axios.create({ // baseURL: process.env.NEXT_PUBLIC_BASE_URL, - baseURL: "https://api.danakcorp.com", + baseURL: process.env.NEXT_PUBLIC_BASE_URL, }); axiosInstance.interceptors.response.use(