Type object
File match convex.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/convex/latest.json
Source https://raw.githubusercontent.com/get-convex/convex-backend/refs/heads/main/npm-packages/convex/schemas/convex.schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Configuration schema for Convex project settings.

Documentation: https://docs.convex.dev/production/project-configuration#convexjson

Properties

$schema string
node object

Node.js specific configuration for server-side packages and dependencies.

2 nested properties
externalPackages array

List of packages that should be installed on the server instead of being bundled. Use this for packages that can't be bundled or need to be installed directly on the server.

If you want to mark all dependencies as external, you can use the string '*' instead of an array.

Documentation: https://docs.convex.dev/functions/bundling#external-packages

Default:
[
  "*"
]
One of: variant, variant
nodeVersion string

The Node.js version to use for Node.js actions. The currently supported values are '18', '20', and '22'.

Documentation: https://docs.convex.dev/production/project-configuration#configuring-the-nodejs-version

Default: "20"
generateCommonJSApi boolean

When true, generates CommonJS-compatible API files for projects not using ES modules. Enable this if your project uses require() syntax instead of ES modules.

Documentation: https://docs.convex.dev/client/javascript/node#javascript-with-commonjs-require-syntax

Default: false
functions string

Path to the directory containing Convex functions. You can customize this to use a different location than the default 'convex/' directory.

Documentation: https://docs.convex.dev/production/project-configuration#changing-the-convex-folder-name-or-location

Default: "convex/"
codegen object

Configuration for Convex code generation.

4 nested properties
fileType string

The file format of generated code. "ts" generates combined .ts files (recommended for TypeScript projects), "js/dts" generates separate .js and .d.ts files.

Note: "js/dts" must be used when using generateCommonJSApi.

Default: "js/dts"
Values: "ts" "js/dts"
legacyComponentApi boolean

When true, generates inline expanded types for component APIs. When false (recommended), generates import-based component API references instead.

Default: false
staticApi boolean

When true, generates static api.d.ts files, which improves autocomplete and incremental typechecking performance in large codebases.

Documentation: https://docs.convex.dev/production/project-configuration#using-static-code-generation-beta

Default: false
staticDataModel boolean

When true, generates static dataModel.d.ts files, which improves autocomplete and incremental typechecking performance in large codebases.

Documentation: https://docs.convex.dev/production/project-configuration#using-static-code-generation-beta

Default: false
bundler object

Configuration for module bundling and source map generation.

1 nested properties
includeSourcesContent boolean

Whether to include original source code in source maps. Set to false to reduce bundle size.

Default: false
typescriptCompiler string

TypeScript compiler to use for typechecking (@typescript/native-preview must be installed to use tsgo)

Values: "tsc" "tsgo"
authKit object

WorkOS AuthKit integration configuration.

Documentation: https://docs.convex.dev/auth/authkit/auto-provision

3 nested properties
dev object

AuthKit configuration for development deployments.

2 nested properties
configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false | object

If false, disables automatically writing local environment variables. Otherwise writes the given mapping to the local .env file.

preview object

AuthKit configuration for preview deployments.

2 nested properties
configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false

Preview deployments must configure environment variables directly in the deployment platform; only false is allowed here.

Constant: false
prod object

AuthKit configuration for production deployments.

3 nested properties
environmentType string

WorkOS environment type. Only supported in the prod section.

Values: "development" "staging" "production"
configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false

Prod deployments must configure environment variables directly in the deployment platform; only false is allowed here.

Constant: false
aiFiles object

User-configurable settings for Convex AI files behavior.

2 nested properties
enabled boolean

When false, disables all Convex AI files prompts and staleness messages in npx convex dev. Use npx convex ai-files enable to re-enable.

Default: true
disableStalenessMessage boolean

Deprecated. Use enabled instead.

Default: false

Definitions

authKitConfigureSettings object

WorkOS AuthKit environment configuration settings.

Documentation: https://docs.convex.dev/auth/authkit/auto-provision

redirectUris string[]

Allowed redirect URIs configured in WorkOS.

appHomepageUrl string

Application homepage URL configured in WorkOS.

corsOrigins string[]

Allowed CORS origins configured in WorkOS.

authKitConfigure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

authKitLocalEnvVars const: false | object

If false, disables automatically writing local environment variables. Otherwise writes the given mapping to the local .env file.

authKitEnvironmentConfigDev object

AuthKit configuration for development deployments.

configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false | object

If false, disables automatically writing local environment variables. Otherwise writes the given mapping to the local .env file.

authKitEnvironmentConfigPreview object

AuthKit configuration for preview deployments.

configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false

Preview deployments must configure environment variables directly in the deployment platform; only false is allowed here.

Constant: false
authKitEnvironmentConfigProd object

AuthKit configuration for production deployments.

environmentType string

WorkOS environment type. Only supported in the prod section.

Values: "development" "staging" "production"
configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false

Prod deployments must configure environment variables directly in the deployment platform; only false is allowed here.

Constant: false
authKitConfig object

WorkOS AuthKit integration configuration.

Documentation: https://docs.convex.dev/auth/authkit/auto-provision

dev object

AuthKit configuration for development deployments.

2 nested properties
configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false | object

If false, disables automatically writing local environment variables. Otherwise writes the given mapping to the local .env file.

preview object

AuthKit configuration for preview deployments.

2 nested properties
configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false

Preview deployments must configure environment variables directly in the deployment platform; only false is allowed here.

Constant: false
prod object

AuthKit configuration for production deployments.

3 nested properties
environmentType string

WorkOS environment type. Only supported in the prod section.

Values: "development" "staging" "production"
configure const: false | authKitConfigureSettings

If false, disables automatic configuration of the WorkOS environment. Otherwise configures the WorkOS environment with these settings.

localEnvVars const: false

Prod deployments must configure environment variables directly in the deployment platform; only false is allowed here.

Constant: false