Skip to content

Commit

Permalink
Fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnie4k committed Dec 14, 2024
1 parent 4260f22 commit 648301b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/services/apiClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Constants } from "@/utils/constants";
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios";

/**
Expand Down Expand Up @@ -43,7 +42,7 @@ class ApiClient {
*/
static createInstance(): AxiosInstance {
return axios.create({
baseURL: Constants.api.baseUrl,
baseURL: process.env.NEXT_PUBLIC_API_BASE_URL,
headers: {
"Content-Type": "application/json",
},
Expand Down
3 changes: 0 additions & 3 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
* A collection of constant values used throughout the application.
*/
export const Constants = {
api: {
baseUrl: process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000",
},
pagePath: {
default: "/",
landing: "/landing",
Expand Down

0 comments on commit 648301b

Please sign in to comment.