chore: add deployment config

This commit is contained in:
ParkWonYeop
2025-12-27 15:45:12 +09:00
parent 87405e897e
commit 906cad6952
27 changed files with 12273 additions and 1543 deletions

View File

@@ -1,14 +1,14 @@
// src/app/providers.tsx
'use client';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { useState } from 'react';
// 🎨 UX 개선: 알림 라이브러리 추가
import { Toaster } from 'react-hot-toast';
export default function Providers({ children }: { children: React.ReactNode }) {
const [queryClient] = useState(() => new QueryClient({
defaultOptions: {
queries: {
// 창을 다시 눌렀을 때 불필요한 재요청 방지
refetchOnWindowFocus: false,
retry: 1,
},
@@ -18,6 +18,23 @@ export default function Providers({ children }: { children: React.ReactNode }) {
return (
<QueryClientProvider client={queryClient}>
{children}
{/* 🎨 전역 알림 컴포넌트 배치 (상단 중앙) */}
<Toaster
position="top-center"
toastOptions={{
style: {
background: '#333',
color: '#fff',
fontSize: '14px',
},
success: {
iconTheme: {
primary: '#4ade80',
secondary: '#fff',
},
},
}}
/>
</QueryClientProvider>
);
}