LoginSignup
0
0

Vercel CLI alias のエラーについて (Error: You don't have access to the domain)

Last updated at Posted at 2023-12-08

エラーについて

Github ActionsからVercel CLIでVercelにデプロイし、カスタムドメインを割り当てるためにAliasを使った際のエラーになります。

コマンド

url=$(vercel deploy --token=***)
vc alias $url your-domain.com --token=***

エラー

Error: You don't have access to the domain your-domain.com under your-user-name.

結論

  1. カスタムドメインを割り当てたいVercelのプロジェクトにドメインを割り当てた後にエイリアスを実行すること.
  2. VercelのTeam内でのプロジェクトの場合、aliasコマンドにscopeオプションをつけること.
url=$(vercel deploy --prebuilt --token=***)
vc alias $url your-domain.com --token=*** --scope=team-name

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0