Skip to content

cli migrate-tenants support for wrangler.jsonc #20

@fl0wo

Description

@fl0wo

Hi, would be cool to not have the cli forced to work on wrangler.toml file, but ideally to be able to provide where's the file, and if not provided, defaults to toml with json/jsonc fallback.

I got an error thrown from this line:
https://github.com/zpg6/better-auth-cloudflare/blob/a8957af938cabe80b2db85531edcfa798087ec94/cli/src/commands/migrate-tenants.ts#L370C45-L370C58

┌  Better Auth Cloudflare vunknown · migrate:tenants
│
└  No wrangler.toml found. Please run this command from a Cloudflare Workers project directory.

Current workaround:
I'm maintaining in sync two files wrangler.jsonc (with the syntax i like for my project) and wrangler.toml (rappresenting exactly the .jsonc version, so that migrate:tenants works)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions