Skip to content

Commit

Permalink
fix : modify API_BASE
Browse files Browse the repository at this point in the history
  • Loading branch information
narinn-star committed Feb 18, 2025
1 parent e18d85f commit 56226ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/ziine/src/entities/artworks/apis/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getClientSideArtworksImageUrl = async (fileNames: string[]): Promis
const params = new URLSearchParams();
params.append('fileNames', fileNames.join(','));

const API_BASE = 'http://localhost:3000';
const API_BASE = process.env.API_URL || 'http://localhost:3000';

const response = await apiClient.get<PresignedUrl>(`${API_BASE}/api/v1/presigned-url?${params.toString()}`, {
prefixUrl: '',
Expand Down
2 changes: 1 addition & 1 deletion apps/ziine/src/entities/artworks/apis/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const postArtworksForm = async (data: Partial<ArtworkFormItem>) => {

export const postClientSideArtworksForm = async (data: Partial<ArtworkFormItem>) => {
try {
const API_BASE = 'http://localhost:3000';
const API_BASE = process.env.API_URL || 'http://localhost:3000';

const response = await apiClient.post<{ success: boolean; message: string }>(`${API_BASE}/api/v1/artworks`, {
json: data,
Expand Down

0 comments on commit 56226ac

Please sign in to comment.