question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[now-cli] Now cli 16.3.0 `--prod` option does not alias domain when build succeeded

See original GitHub issue

Hi everyone,

First of all, amazing service and this is really the first time I’ve found an issue in a process that was overall very seamless, thank you!

Now I did get an issue with updating now-cli to 16.3.0, and to my surprise my build does not get to be aliased to my custom domain. Going back to now-cli@16.2.0 fixes my issue completely.

My command is the following:

now --prod --local-config ./.now/now.dev.json

My config is:

{
  "name": "website-dev",
  "alias": "domain.com",
  "version": 2,
  "build": {
    "env": {
      // hidden
    }
  },
  "builds": [{
    "src": "next.config.js",
    "use": "@now/next"
  }]
}

Is there something I need to update to support the newer now-cli updates?

Thanks in advance, let me know if you need more info from me!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
styflecommented, Oct 3, 2019

The stable channel has been updated with this fix, thanks

https://github.com/zeit/now/releases/tag/now%4016.3.1

Stable is master branch https://github.com/zeit/now/commits/master Canary is canary branch https://github.com/zeit/now/commits/canary

0reactions
theBlizcommented, Oct 3, 2019

@samuelroy thanks for sharing! I’ve solved #3107 by using now@canary

npm install --global --unsafe-perm now@canary
now --prod --token $ZEIT_TOKEN --local-config .now/now.production.json

and now.production.json

{
    "version": 2,
    "name": "my-production-name",
    "alias": "myproductiondomain.com",
    "builds": [{ "src": "package.json", "use": "@now/next" }]
}

@styfle when should we expect this fix to be merged on the main release? also, where can I check the main differences between main and canary?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Now CLI failed (Now Experience UI Framework)
I am trying to install Now CLI using this command: ... Please update your dependencies as this version is no longer maintained an...
Read more >
Using `--alias` with invalid characters "slugifies" the string in ...
When using --alias to create a custom subdomain for a deploy, characters which would be invalid for a domain name are "slugified" in...
Read more >
Domain - AWS Copilot CLI
Use app-associated root domain · Default domain name for your service · Customized domain alias · What happens under the hood? · What...
Read more >
Add a user alias domain or secondary domain - Google Support
Depending on your needs, you add a domain as a user alias domain or a secondary domain. If you try to add a...
Read more >
vercel alias
Using the vercel alias command to list Custom Domains that were assigned to Deployments. Unique Options. These are options that only apply to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found