mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 23:16:59 +00:00
Move Next.js build output to the root
This commit is contained in:
parent
541491f169
commit
b02817f4f2
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
2
next.config.js
Normal 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.
|
@ -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 ."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user