Closed taro350 closed 2 years ago
@taro350 Did you set the Root Directory from the project settings like so?
@cond0r I had simply set yarn build
before and changed to cd... && yarn build
. The error is gone! But now I got error Couldn't find a package.json file in "/vercel"
. I have a hard time figuring out a path to get it right.
@cond0r I had simply set
yarn build
before and changed tocd... && yarn build
. The error is gone! But now I goterror Couldn't find a package.json file in "/vercel"
. I have a hard time figuring out a path to get it right.
@taro350 did you set the root directory to site also ?
@cond0r It worked! And I will acknowledge that I completely missed the Root Directory part in your first screenshot. Thank you very much.
I wanted to create a commerce website with Next.js and Swell, and I cloned
vercel/commerce
and changes remote to my local repo, then succeeded to build it in my local development and even start. I see my demo website that looks likehttps://<mystorefront>.swell.store/admin/store
(I assume integrating with Swell storefront from my local development is currently working now) inlocalhost:3000
.Pushing to my repository, connected to Vercel, Vercel automatically tries to deploy my application but the error occurs, which says
Error: No Output Directory named "public" found after the Build completed.
./package.json
./site/package.json
./packages/commerce/src/config.cjs
I see
public
in./site/public
, but have no idea where to putpublic
, or should do I change Output Directory?