vercel / platforms

A full-stack Next.js app with multi-tenancy and custom domain support. Built with Next.js App Router and the Vercel Domains API.
https://app.vercel.pub
5.38k stars 688 forks source link

Update .env.example file with Vercel deployment suffix #386

Open ga1az opened 5 months ago

ga1az commented 5 months ago

An environment variable is missing, which is in the middleware, but in the .env.example it does not appear.

  if (
    hostname.includes("---") &&
    hostname.endsWith(`.${process.env.NEXT_PUBLIC_VERCEL_DEPLOYMENT_SUFFIX}`)
  ) {
    hostname = `${hostname.split("---")[0]}.${
      process.env.NEXT_PUBLIC_ROOT_DOMAIN
    }`;
  }
vercel[bot] commented 5 months ago

@ga1az is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.