Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add --local flag to dev command #19

Closed
wants to merge 1 commit into from

Conversation

amorriscode
Copy link

tl;dr

  • Adds --local flag to dev command

Description

I was trying to run this minimal example but kept receiving the following error:

{
    text: 'Received a bad response from the API',
    notes: [ { text: 'workers.api.error.subdomain_required [code: 10063]' } ],
    location: undefined,
    kind: 'error',
    code: 10063
  }

After adding the --local flag, which is defined as Run on my machine on the CLI, everything worked!

@amorriscode
Copy link
Author

I'll be honest that maybe there's something more going on. I realize wrangler dev should work but not that I look more into it, I seem to be having issues with my Worker domain.

@yusukebe
Copy link
Member

Hi @amorriscode !

I think we don't need to write --local options into package.json.
If you want to enable the flag on, run it like this:

yarn dev --local

Then, wrangler will start with local mode.

@amorriscode
Copy link
Author

Yeah @yusukebe I realized that after making the PR. It's likely something wrong with my Cloudflare setup. Sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants