From 03af90f17b4fe06cd65ceffe22d860e2f39c135a Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 7 Jan 2022 11:56:06 -0800 Subject: [PATCH] Fix local dev setup --- .gitignore | 2 ++ og-image/README.md | 18 ++++++++++++++++-- og-image/package.json | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e43b0f98..90399065 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .DS_Store + +.vercel diff --git a/og-image/README.md b/og-image/README.md index bc97b7e2..7d0d2f92 100644 --- a/og-image/README.md +++ b/og-image/README.md @@ -8,8 +8,22 @@ For more info, see Contributing.md -nb2: (Not `dev` because that's reserved for Vercel) -nb3: (Or `cd .. && vercel --prod`, I think) +- note2: You may have to configure Vercel the first time: + + ``` + $ yarn start + yarn run v1.22.10 + $ cd .. && vercel dev + Vercel CLI 23.1.2 dev (beta) — https://vercel.com/feedback + ? Set up and develop “~/Code/mantic”? [Y/n] y + ? Which scope should contain your project? Mantic Markets + ? Found project “mantic/mantic”. Link to it? [Y/n] n + ? Link to different existing project? [Y/n] y + ? What’s the name of your existing project? manifold-og-image + ``` + +- note2: (Not `dev` because that's reserved for Vercel) +- note3: (Or `cd .. && vercel --prod`, I think) (Everything below is from the original repo) diff --git a/og-image/package.json b/og-image/package.json index 842f3629..6f7bf48a 100644 --- a/og-image/package.json +++ b/og-image/package.json @@ -2,7 +2,7 @@ "private": true, "scripts": { "build": "tsc -p api/tsconfig.json && tsc -p web/tsconfig.json", - "start": "vercel dev" + "start": "cd .. && vercel dev" }, "dependencies": { "chrome-aws-lambda": "7.0.0",