This commit is contained in:
parent
d363d81c8f
commit
056a22e2e3
@ -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
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user