initialize Vite + React + TypeScript project with Tailwind CSS and API service setup
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
import { ApiConfig } from './types';
|
||||
|
||||
// API configuration
|
||||
export const apiConfig: ApiConfig = {
|
||||
baseURL: import.meta.env.VITE_API_BASE_URL || 'http://localhost:5278',
|
||||
timeout: 10000, // 10 seconds
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json',
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
|
||||
'Access-Control-Allow-Headers': 'Content-Type, Authorization'
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user