Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

nextjs-16-use-server-exports

النجوم١
التفرعات٠
آخر تحديث٢٧ يناير ٢٠٢٦ في ٠٨:٤٦

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