Skip to main content

Overview

Default exports

Explain expected default exports.
  • schema.ts: The database schema.
  • crons.ts: The cron jobs.
  • http.ts: The HTTP API.
  • app.ts: Maps to convex.config.ts
  • auth.ts: Maps to auth.config.ts
Confect treats the convex directory as a codegen target. While using Confect, you should never modify files in the convex folder directly, except for tsconfig.json. Under most circumstances, you don’t even need to run the Convex CLI’s codegen command.

Generated files

There are two codegen targets:
  • confect/_generated
  • convex
The confect/_generated directory will contain the following files:
  • _generated/api.ts
  • _generated/refs.ts
  • _generated/services.ts