Next.js Discord

Discord Forum

Turborepo question

Unanswered
Eastern yellowjacket posted this in #help-forum
Open in Discord
Eastern yellowjacketOP
I have two tasks, codegen and format. The problem I have is that after generating the schemas.ts file, the format task does not recognize that the file was modified and remains in the cache.

This is my turbo.json. I use cache: false because I need to always run the task, because I get the information from an external API to modify the file.

    "format": {},
    "codegen": {
      "cache": false,
      "inputs": ["$TURBO_DEFAULT$", ".env*"],
      "env": ["BACKEND_OPENAPI_URL"]
    }

0 Replies