# Function: findServerFile()

```ts
function findServerFile(basePath: string): string | null;

```

Find the server entry file by checking candidate paths in order.

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter  | Type     | Description                           |
| ---------- | -------- | ------------------------------------- |
| `basePath` | `string` | Project root directory to search from |

## Returns[​](#returns "Direct link to Returns")

`string` | `null`

Absolute path to the server file, or null if none found
