cicd 13
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m13s

This commit is contained in:
Gal Podlipnik 2025-06-12 17:13:35 +02:00
parent d363d81c8f
commit 056a22e2e3
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,8 @@ COPY package.json package-lock.json ./
RUN npm ci RUN npm ci
COPY . . COPY . .
ENV VITE_API_BASE_URL=/api
RUN npm run build RUN npm run build
FROM nginx:alpine FROM nginx:alpine

View File

@ -11,7 +11,8 @@ import type {
} from '@/types'; } from '@/types';
import axios, { type AxiosResponse } from 'axios'; import axios, { type AxiosResponse } from 'axios';
const API_BASE_URL = 'http://localhost:3000/api'; const API_BASE_URL =
import.meta.env.VITE_API_BASE_URL || 'http://localhost:3000/api';
const api = axios.create({ const api = axios.create({
baseURL: API_BASE_URL, baseURL: API_BASE_URL,