## TL;DR

The issue was that I needed to remove the 'use server' from the index.ts file itself.

## Steps

1. [CodeConnoisseur (accepted answer)] I had a similar issue in next 14 where I was using an index.ts file to centralize my exports of server actions. The issue was that I needed to remove the 'use server' from the index.ts file itself. WRONG:

``` 'use server' /** * Simplify and centralize server action exports */ export { signIn } from "./signIn"; export { signOut } from "./signOut"; export { createComment } from "./createComment"; export { createPost } from "./createPost"; export { createTopic } from "./createTopic"; ```

2. CORRECT: Remove use server from top of file.

3. Also searched as: ""Only async functions are allowed to be exported in a 'use server' file""

## When to use

You are seeing this: [CodeConnoisseur (accepted answer)] I had a similar issue in next 14 where I was using an index.ts file to centralize my exports of server actions. Use this skill when you run into "Error: "Only async functions are allowed to be exported in a 'use server' file"".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
