Sanity Library Reference Docs
    Preparing search index...
    • The module specifier a generated module imports its deployment from, for a config file named configFile. Relative to the directory holding the config file, so a generated module in a subdirectory prefixes it with the hops back up. Extensionless for .ts and .js; any other extension is kept, because an extensionless specifier does not resolve to it.

      Parameters

      • configFile: string

      Returns string

      configModuleSpecifier('sanity.workflow.ts') // 'sanity.workflow'
      configModuleSpecifier('sanity.workflow.mjs') // 'sanity.workflow.mjs'