Closed10

VercelでDeployment Protectionができるらしい

hajimismhajimism

Vercel offers the following Deployment Protection features:

  • Vercel Authentication: Restricts access to your deployments to only Vercel users with suitable access rights. Vercel Authentication is available on all plans
  • Password Protection: Restricts access to your deployments to only users with the correct password. Password Protection is available on the Enterprise plan, or as a paid add-on for Pro plans
  • Trusted IPs: Restricts access to your deployments to only users with the correct IP address. Trusted IPs is available on the Enterprise plan

欲しいやつは一通りあるな、パスワード認証は有料プランから

hajimismhajimism

When you enable Advanced Deployment Protection, you will be charged $150 per month for the add-on, and will have access to all Advanced Deployment Protection features.

きちー

hajimismhajimism

Vercel Authだとキツすぎなんだよねー

Ensures visitors to your deployments are logged in to Vercel and are a member of your team.

hajimismhajimism

やり方

  1. From the dashboard, select the project you wish to set Deployment Protection on
  2. Once selected, navigate to the Settings tab
  3. From the list, select the Deployment Protection tab

たしかに下の方にDeployment Protectionあるな

hajimismhajimism

プロテクション対象について

You can configure the type of Deployment Protection for each environment in your project depending on your projects security needs. When choosing your protection method, you can select from three options:

  • Standard Protection: Protects both preview and generated production URLs. Standard Protection is available on all plans
  • Only Preview Deployments: Protects only preview URLs. Protecting preview deployments is available on all plans
  • All Deployments: Protects all URLs. Protecting all deployments is available on Pro and Enterprise plans

Standard Protectionでよさげ

hajimismhajimism

Enabling Standard Protection restricts public access to the production generated deployment URL. This affects VERCEL_URL from System Environment Variables and VERCEL_URL from Framework Environment Variables, making them unsuitable for fetch requests.

If you are using VERCEL_URL to make fetch requests, you will need to be update them to instead target same domain that the user has requested.

たしかに、こういう懸念があるか

このスクラップは5ヶ月前にクローズされました