diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index cf00e9a..aa5f83e 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -7,7 +7,7 @@ on: env: DOCKER_IMAGE: ${{ secrets.DOCKER_USERNAME }}/billilge-client - CAPROVER_APP: app + CAPROVER_APP: www jobs: build-and-deploy: diff --git a/src/components/mobile/SidebarMenu/index.tsx b/src/components/mobile/SidebarMenu/index.tsx index 43004ac..077ca86 100644 --- a/src/components/mobile/SidebarMenu/index.tsx +++ b/src/components/mobile/SidebarMenu/index.tsx @@ -18,6 +18,8 @@ interface SidebarProps { role?: string; } +const adminRole = ['GA', 'WORKER', 'ADMIN']; + const menuItems = [ { icon: IconRentalList, label: '복지 물품 목록', href: '/mobile/main' }, { icon: IconRentalHistory, label: '대여기록', href: '/mobile/history' }, @@ -38,7 +40,7 @@ const adminItems = [ { icon: IconAdminHomepage, label: '관리자 홈페이지', - href: 'https://www.billilge.site/desktop/login', + href: 'https://admin.billilge.site/login', }, ]; @@ -100,7 +102,7 @@ export default function Sidebar({
{/* 관리자 메뉴 */} - {role === 'ADMIN' && ( + {adminRole.includes(role) && ( <>