Merge pull request 'fix: 존재하지 않는 URL 접근 시 메인으로 리다이렉트' (#14) from develop into main
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 14s

Reviewed-on: #14
This commit is contained in:
htlee 2026-02-18 13:41:39 +09:00
커밋 ea5ca4c430

파일 보기

@ -1,4 +1,4 @@
import { BrowserRouter, Route, Routes } from 'react-router';
import { BrowserRouter, Navigate, Route, Routes } from 'react-router';
import { AuthProvider } from './auth/AuthProvider';
import { ProtectedRoute } from './auth/ProtectedRoute';
import { AdminRoute } from './auth/AdminRoute';
@ -42,6 +42,9 @@ function App() {
</Route>
</Route>
</Route>
{/* Catch-all: 존재하지 않는 경로 → 메인으로 */}
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
</BrowserRouter>
</AuthProvider>