Skip to main content
Manus에서 모든 스킬 실행
원클릭으로

nextjs-16-use-server-exports

스타1
포크0
업데이트2026년 1월 27일 08:46

Fix Next.js 16 build error "A 'use server' file can only export async functions, found object". Use when: (1) Build fails with this exact error message, (2) You have constants, enums, or type exports in files with "use server" directive, (3) Exporting AUDIT_ACTIONS, validation schemas, or other non-function values from server action files. Solution: Separate constants into a new file without "use server" directive and import them where needed.

설치

Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.

SKILL.md
readonly