Skip to content

Commit 7b209a7

Browse files
authored
feat(nx): update nx example with vercel.json (#1066)
### Description Update nx example to demonstrate configuration for vercel.json ### Demo URL <!-- Provide a URL to a live deployment where we can test your PR. If a demo isn't possible feel free to omit this section. --> ### Type of Change - [ ] New Example - [ ] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered?
1 parent 6d73fab commit 7b209a7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

solutions/nx-monorepo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn to implement a monorepo with a single Next.js site using Nx.
55
framework: Next.js
66
useCase: Documentation
77
css: CSS
8-
deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/nx-monorepo&project-name=nx-monorepo&output-directory=dist%2Fapps%2Fapp%2F.next&build-command=npx%20nx%20build%20app%20--prod&repository-name=nx-monorepo
8+
deployUrl: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Fnx-monorepo&project-name=nx-monorepo&output-directory=out%2F.next&build-command=cd+..%2F..%2F+%26%26+npx+nx+build+app+--prod&repository-name=nx-monorepo&root-directory=apps%2Fapp
99
relatedTemplates:
1010
- monorepo-turborepo
1111
- turborepo-next-basic

solutions/nx-monorepo/apps/app/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"defaultConfiguration": "production",
1010
"options": {
1111
"root": "apps/app",
12-
"outputPath": "dist/apps/app"
12+
"outputPath": "apps/app/out"
1313
},
1414
"configurations": {
1515
"development": {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"framework": "nextjs"
3+
}

0 commit comments

Comments
 (0)