Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows related fixes/updates #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down