Skip to content

Commit

Permalink
Merge pull request #181 from saleor/fix-vercel
Browse files Browse the repository at this point in the history
Fix deploy to Vercel info for `env create`
  • Loading branch information
zaiste committed Jul 7, 2022
2 parents f58a26a + 3c4c18e commit fbf7e6e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,8 @@ export const deploy = async ({ name, url }: { name: string; url: string }) => {
'repository-url': 'https://github.com/saleor/react-storefront',
'project-name': name || 'my-react-storefront',
'repository-name': name || 'my-react-storefront',
env: 'NEXT_PUBLIC_API_URI,NEXT_PUBLIC_DEFAULT_CHANNEL',
envDescription:
'\'NEXT_PUBLIC_API_URI\' is your GraphQL endpoint, while \'NEXT_PUBLIC_DEFAULT_CHANNEL\' in most cases should be set to \'default-channel\'',
env: 'NEXT_PUBLIC_API_URI',
envDescription: '\'NEXT_PUBLIC_API_URI\' is your GraphQL endpoint',
envLink: 'https://github.com/saleor/react-storefront',
};

Expand All @@ -414,10 +413,9 @@ export const deploy = async ({ name, url }: { name: string; url: string }) => {
)} for configuration:`
);

console.log(`
${chalk.gray('NEXT_PUBLIC_API_URI')}=${chalk.yellow(url)}
${chalk.gray('NEXT_PUBLIC_DEFAULT_CHANNEL')}=${chalk.yellow('default-channel')}
`);
console.log(
`\n${chalk.gray('NEXT_PUBLIC_API_URI')}=${chalk.yellow(`${url}/graphql`)}\n`
);

console.log(
'To complete the deployment, open the following link in your browser and continue there:'
Expand Down

0 comments on commit fbf7e6e

Please sign in to comment.