Files
twenty/packages/twenty-website/project.json
T
16ad50ea46 Set website default port to 3002 (#20795)
## Summary

- Set `twenty-website`'s `dev` script to run Next.js on port `3002` by
default.
- Set `twenty-website`'s `start` script to use the same default port.

## Why

`twenty-website` previously inherited Next.js' default port `3000`,
which is also Twenty's backend/server default. The main Twenty frontend
already defaults to `3001`, so using `3002` for the website avoids local
port collisions when running the website next to the app server and
frontend.

This keeps the local convention sequential:

- `3000`: Twenty backend/server
- `3001`: Twenty frontend app
- `3002`: Twenty website

## Validation

- Parsed `packages/twenty-website/package.json` successfully with Node.
- Ran `git diff --check` for the changed package file.
- Verified Next.js supports the `--port` option for `next dev`.

---------

Co-authored-by: Abdullah <125115953+mabdullahabaid@users.noreply.github.com>
2026-05-21 09:34:56 +00:00

117 lines
2.9 KiB
JSON

{
"name": "twenty-website",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/twenty-website/src",
"projectType": "application",
"tags": ["scope:website"],
"targets": {
"build": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/.next"],
"options": {
"cwd": "{projectRoot}",
"command": "npx next build"
},
"dependsOn": ["^build"]
},
"dev": {
"executor": "nx:run-commands",
"cache": false,
"options": {
"cwd": "{projectRoot}",
"command": "npx next dev --port 3002"
}
},
"start": {
"executor": "nx:run-commands",
"cache": false,
"dependsOn": ["build"],
"options": {
"cwd": "{projectRoot}",
"command": "npx next start --port 3002"
}
},
"check-boundaries": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/src/**/*",
"{projectRoot}/scripts/check-boundaries.mjs"
],
"options": {
"cwd": "{projectRoot}",
"command": "node scripts/check-boundaries.mjs"
}
},
"check-section-shape": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/src/sections/**/*",
"{projectRoot}/scripts/check-section-shape.mjs"
],
"options": {
"cwd": "{projectRoot}",
"command": "node scripts/check-section-shape.mjs"
}
},
"check-lottie-frames": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/public/lottie/stepper/stepper.lottie",
"{projectRoot}/src/sections/HomeStepper/utils/home-stepper-lottie-frame-map.ts",
"{projectRoot}/scripts/check-lottie-frames.mjs"
],
"options": {
"cwd": "{projectRoot}",
"command": "node scripts/check-lottie-frames.mjs"
}
},
"lint": {
"dependsOn": [
"check-boundaries",
"check-section-shape",
"check-lottie-frames",
"^build",
"twenty-oxlint-rules:build"
]
},
"lint:diff-with-main": {
"dependsOn": [
"check-boundaries",
"check-section-shape",
"check-lottie-frames"
]
},
"typecheck": {},
"test": {},
"fmt": {
"options": {
"files": "."
},
"configurations": {
"fix": {}
}
},
"lingui:extract": {
"executor": "nx:run-commands",
"dependsOn": ["^build"],
"options": {
"cwd": "{projectRoot}",
"command": "lingui extract --overwrite --clean"
}
},
"lingui:compile": {
"executor": "nx:run-commands",
"dependsOn": ["^build"],
"options": {
"cwd": "{projectRoot}",
"command": "lingui compile --typescript"
}
}
}
}