# Application Config

`tailor.config.ts` defines the Tailor application configuration. Refer to existing examples in the codebase for the full config structure.

Key points:

- `gqlOperations: "query"` — Auto-generates list/get GraphQL queries for all DB types
- Glob patterns for resolver/executor discovery
- See [SDK configuration docs](https://raw.githubusercontent.com/tailor-platform/sdk/refs/heads/main/packages/sdk/docs/configuration.md) for full config options

## Auth configuration

- Prefer stable default naming: auth `default`, IdP `default`, OAuth2 client `default`
- `userProfile.type` must reference the `user` DB type from `modules-db`
- `userProfile.usernameField`: stable unique field (e.g., `email`)
- Include static website URL and localhost in CORS: `cors: ["http://localhost:5173", website.url]`
- Frontend `VITE_TAILOR_CLIENT_ID` must come from `tailor oauth2client get default --json` — do not hardcode
