diff --git a/.gitignore b/.gitignore index b7301fe56..c6e2ae8e7 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,7 @@ yarn-error.log* # Turborepo .turbo + +# Temporal setup to fix Commerce deployments done by the Deploy Button +.next +public diff --git a/next.config.js b/next.config.js new file mode 100644 index 000000000..eb197af44 --- /dev/null +++ b/next.config.js @@ -0,0 +1,2 @@ +// This file is here to let Vercel think this is a Next.js project. +// The actual next.config.js is in ./site/next.config.js. diff --git a/package.json b/package.json index 2854cf992..9e0b76787 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "packages/*" ], "scripts": { - "build": "turbo run build --scope=next-commerce --include-dependencies --no-deps", + "build": "turbo run build --scope=next-commerce --include-dependencies --no-deps && cp -r site/.next .next && cp -r site/public public", "dev": "turbo run dev", "start": "turbo run start", "prettier-fix": "prettier --write ."