첫 커밋
This commit is contained in:
12
src/config/index.ts
Normal file
12
src/config/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
interface ViteEnv {
|
||||
readonly VITE_API_BASE_URL?: string;
|
||||
}
|
||||
|
||||
const config = {
|
||||
api: {
|
||||
baseURL: (import.meta as unknown as { env: ViteEnv }).env?.VITE_API_BASE_URL || 'http://localhost:3000/api',
|
||||
timeout: 30000,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user