PR Summary #1
@@ -1,8 +1,12 @@
|
||||
// src/lib/axiosServer.ts
|
||||
import axios from 'axios';
|
||||
import https from 'https';
|
||||
|
||||
const axiosServer = axios.create({
|
||||
baseURL: process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8080/api',
|
||||
baseURL: process.env.API_BASE_URL || 'http://localhost:8080/api',
|
||||
httpsAgent: new https.Agent({
|
||||
rejectUnauthorized: false, // Accept self-signed certificates
|
||||
}),
|
||||
});
|
||||
|
||||
export default axiosServer;
|
||||
|
||||
Reference in New Issue
Block a user