Skip to content

Commit 2eadca3

Browse files
committed
프론트 BASE_URL 기본값 변경
1 parent a883023 commit 2eadca3

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/src/infrastructure/api/airQualityApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import type { AirQualityData } from '../../domain/entities/airQuality.types'
66
import type { Region } from '../../domain/entities/region.types'
77

8-
const API_BASE = import.meta.env.VITE_API_BASE_URL ?? 'http://localhost:8000'
8+
const API_BASE = import.meta.env.VITE_API_BASE_URL ?? ''
99

1010
async function apiFetch<T>(path: string): Promise<T> {
1111
const res = await fetch(`${API_BASE}${path}`, {

frontend/vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ export default defineConfig({
8080
],
8181
server: {
8282
allowedHosts: ['localhost', 'filial-janett-intromittent.ngrok-free.dev'],
83+
proxy: {
84+
'/api': 'http://localhost:8000',
85+
'/health': 'http://localhost:8000',
86+
'/docs': 'http://localhost:8000',
87+
},
8388
},
8489
preview: {
8590
allowedHosts: ['localhost', 'filial-janett-intromittent.ngrok-free.dev'],

0 commit comments

Comments
 (0)