resolveConvexStateDir
●test-convex · /start·function
Resolves the project-local Convex state directory (<projectDir>/.convex)
the local/anonymous backend persists its SQLite database, storage, and
deployment config into. This is the directory reset wipes.
Signature
function resolveConvexStateDir(projectDir: string): string;Parameters
| Name | Type | Description |
|---|---|---|
projectDir | string |
Returns
Absolute path to the .convex state directory.
Related
StartConvexOptions StartedConvex resolveConvexProjectDir startConvex
resolveConvexProjectDir
Resolves the Convex project directory (the one holding convex.json and the convex/ functions) the local backend pushes. Honors CONVEXPROJECTDIR for overrides; o
StartConvexOptions
Options for . All fields are optional; omitting them starts an ephemeral local Convex backend that is torn down on stop().