diff --git a/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java b/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java index 65fb1658..d22fa3fb 100644 --- a/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java +++ b/backend/src/main/java/sw_css/milestone/application/MilestoneHistoryCommandService.java @@ -74,7 +74,7 @@ private String generateFilePath(final MultipartFile file) { if (file == null) { return null; } - return UUID.randomUUID() + "_" + file.getOriginalFilename(); + return UUID.randomUUID() + "_" + file.getOriginalFilename().replaceAll("\\[|\\]", ""); } private void uploadFile(final MultipartFile file, final String newFilePath) { diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 3b4cd057..e2b7bfd6 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -9,4 +9,10 @@ const nextConfig = { }, }; +if (process.env.NEXT_PUBLIC_NODE_ENV === 'prod') { + nextConfig.compiler = { + removeConsole: true, + }; +} + export default nextConfig; diff --git a/frontend/src/app/admin/milestone/list/page.tsx b/frontend/src/app/admin/milestone/list/page.tsx index 8abc9ffb..7120f81f 100644 --- a/frontend/src/app/admin/milestone/list/page.tsx +++ b/frontend/src/app/admin/milestone/list/page.tsx @@ -10,8 +10,6 @@ import MilestoneHistoryTable from './components/MilestoneHistoryTable'; import MilestoneHistoryExcelFileDownloadButton from './components/MilestoneHistoryTable/MilestoneHistoryExcelFileDownloadButton.tsx'; import { AuthSliceState } from '@/store/auth.slice'; import { getAuthFromCookie } from '@/lib/utils/auth'; -import { BusinessError } from '@/types/error'; -import { redirect } from 'next/navigation'; const Page = async ({ searchParams }: { searchParams?: { [key: string]: string | undefined } }) => { const headersList = headers(); @@ -47,7 +45,12 @@ const Page = async ({ searchParams }: { searchParams?: { [key: string]: string |