fix: api.ts fallback URL for build-time axios
All checks were successful
Deploy Canina / deploy (push) Successful in 1m6s

This commit is contained in:
devops 2026-07-14 12:34:51 +00:00
parent b260d5f6d3
commit fa714c2889

View File

@ -1,6 +1,6 @@
import axios from 'axios';
const baseURL = typeof window !== 'undefined' ? '/api' : (process.env.NEXT_PUBLIC_API_URL || '/api');
const baseURL = typeof window !== 'undefined' ? 'http://localhost:3000/api' : (process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000/api');
const api = axios.create({
baseURL,