Skip to content

Commit

Permalink
feat: add env var
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbrugger committed Oct 31, 2024
1 parent a41f3d9 commit 5f1a16d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cli/src/x/actions/develop.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export async function developAction(
// Check if any agents are listed for environment
const apiClient = apiKeyClient({ apiUrl, apiKey: apiKey! })

if (!options?.skipDeployedCheck) {
const skipDeployedCheck =
options?.skipDeployedCheck ??
(process.env.FLATFILE_SKIP_DEPLOYED_CHECK ?? '').trim().toLowerCase() ===
'true'

if (!skipDeployedCheck) {
const agents = await apiClient.agents.list({
environmentId: environment.id,
})
Expand Down

0 comments on commit 5f1a16d

Please sign in to comment.