#`npx convex dev` hanging

3 messages · Page 1 of 1 (latest)

torn saddle
#

Why does having this inside an action file cause npx convex dev to hang on "Analyzing and deploying source code..."

"use node"

configureGenkit({
  plugins: [
    openAI({ apiKey: process.env.OPENAI_API_KEY }),
    googleAI({ apiKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY }),

  ],
  flowStateStore: "firebase",
  traceStore: "firebase",
  logLevel: "debug",
  enableTracingAndMetrics: true,
});

I would like to be able to see detailed logs of what is going on if possible?

#

with the verbose flag i see this, but no idea what's happening in this final loading step. I get this after waiting for a while

✖ Error: Unable to push deployment config to https://sensible-salmon-524.convex.cloud
Error fetching POST  https://sensible-salmon-524.convex.cloud/api/push_config 408 Request Timeout
Failed due to network error, retrying in 393.96ms...
simple hedge
#

Can you put that code inside of a function that you call, vs. running it at import time?