schema.graphql location very difficult to specify
### Node Version

22.11.0

### NPM/Yarn/PNPM Version

NPM 10.9.0

### Strapi Version

5.10.0

### Operating System

Linux (Debian/Ubuntu)

### Database

SQLite

### Javascript or Typescript

Typescript

### Reproduction URL

https://github.com/Gkleinereva/schema-generation-reproduction

### Bug Description

After the upgrade to Strapi 5, it is very difficult to precisely specify the location of a generated `schema.graphql` file when using the Strapi GraphQL plugin.  Previously, this was very easy to do using the `node:path` package and the `__dirname` constant (an example of this setup can be found in the following issue comment: https://github.com/strapi/strapi/issues/12420#issuecomment-1042648560).

Now, the only solution I've found to specify the file path in a way that will work on multiple developers' machines is to set a new environment variable holding the value of the path.  This will work for the time being, but it seems cumbersome relative to the solutions that worked on Strapi v4.

It's possible that this can be addressed by a documentation update to https://docs.strapi.io/dev-docs/configurations/plugins#graphql, but I couldn't figure out an alternative working ergonomic configuration.

### Steps to Reproduce

1. Pull the reproduction repository
2. Open the `config/plugins.ts` file to see the different setups I tried with annotations
3. The uncommented configuration worked on v4, and no longer works on v5

### Expected Behavior

In my opinion, the `schema` key in the indicated `config/plugins.ts` file would ideally accept a relative path.  Alternatively, it would be nice if the previously working configurations using `__dirname` worked again.

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

I had a pretty extensive conversation with the Discord help bot about this problem.  It suggested the environment variable workaround.  That discussion can be found at https://discord.com/channels/811989166782021633/1339334276428070975

- Under OS I marked "Linux (Debian/Ubuntu). This is true, but I'm running ubuntu locally inside of WSL for local dev
- Under "Javascript or Typescript", I marked "Typescript", but we're using the allowJs option, and much of our source code is still in vanilla JS

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).