diff --git a/README.md b/README.md index c284959..d96d8f8 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,14 @@ Run these commands to start running locally: cd hello-nextjs-sample npm install npm run quickstart +``` +You should see a prompt to hit ENTER to open the browser. Once the browser is open, follow the steps to update your local environment with the necessary configuration. It should look something like: + +![image](https://github.com/brose1977/hello-nextjs-sample/assets/13365872/c5cbb9df-7de8-452d-be27-363930b9530f) + +Once completed, you will now have the necessary configuration and environment variables. Continue by running the following: + +``` npm run dev ``` @@ -72,6 +80,15 @@ git commit -a -m"quickstart" git push origin vercel link --yes npm run config:vercel +``` +For Windows systems, run: +``` +For /f %i in ('vercel --yes') do set "DEPLOYMENT=%i" +npx open-cli %DEPLOYMENT% +``` + +otherwise, run: +``` DEPLOYMENT=$(vercel --yes) npx open-cli $DEPLOYMENT ``` diff --git a/package.json b/package.json index e0ecc70..929453e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build": "next build", "start": "next start", "lint": "next lint", - "quickstart": "npx @hellocoop/quickstart@latest --nextjs -x 'Next.js Sample' -i 'hello-nextjs-sample'", + "quickstart": "npx @hellocoop/quickstart@latest --nextjs -x \"Next.js Sample\" -i \"hello-nextjs-sample\"", "https": "next dev --experimental-https", "config:vercel": "npm-run-all config:vercel:*", "config:vercel:secret-development": "node -e \"process.stdout.write(crypto.randomBytes(32).toString('hex'))\" | vercel env add HELLO_COOKIE_SECRET development",