Move Next.js build output to the root

This commit is contained in:
LFades 2022-02-09 11:51:20 -05:00
parent 541491f169
commit b02817f4f2
3 changed files with 7 additions and 1 deletions

4
.gitignore vendored
View File

@ -38,3 +38,7 @@ yarn-error.log*
# Turborepo # Turborepo
.turbo .turbo
# Temporal setup to fix Commerce deployments done by the Deploy Button
.next
public

2
next.config.js Normal file
View File

@ -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.

View File

@ -7,7 +7,7 @@
"packages/*" "packages/*"
], ],
"scripts": { "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", "dev": "turbo run dev",
"start": "turbo run start", "start": "turbo run start",
"prettier-fix": "prettier --write ." "prettier-fix": "prettier --write ."