chore(website): remove partners marketplace route lint guard (#22121)

## Summary

Follow-up to #22120. Removes the `check-partners-marketplace-routes.mjs`
lint guard and its `project.json` wiring — the profile fix is just
`force-dynamic` on the page; the extra script is not needed.

## Changes

- Delete
`packages/twenty-website/scripts/check-partners-marketplace-routes.mjs`
- Restore `project.json` lint command to run only
`check-conventions.mjs` (as before #22120)

## Context

The guard was added in #22120 but the removal commit did not land before
merge. This PR cleans that up. No runtime behavior change.

## Test plan

- [ ] `nx lint twenty-website` (or CI) passes without the removed script

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/22121?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
This commit is contained in:
Rashad Karanouh
2026-06-25 09:12:12 +04:00
committed by GitHub
parent b841b92cb5
commit feac2df216
2 changed files with 1 additions and 32 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "node scripts/check-partners-marketplace-routes.mjs && node scripts/check-conventions.mjs && npx oxlint -c .oxlintrc.json . && npx oxfmt --check ."
"command": "node scripts/check-conventions.mjs && npx oxlint -c .oxlintrc.json . && npx oxfmt --check ."
},
"configurations": {
"fix": {
@@ -1,31 +0,0 @@
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');
const routes = [
'src/app/[locale]/(site)/partners/list/page.tsx',
'src/app/[locale]/(site)/partners/profile/[slug]/page.tsx',
];
const failures = [];
for (const relativePath of routes) {
const fullPath = path.join(root, relativePath);
const source = fs.readFileSync(fullPath, 'utf8');
if (!/export const dynamic = 'force-dynamic';/.test(source)) {
failures.push(
`${relativePath}: must export dynamic = 'force-dynamic' (OpenNext runtime fetch; build has no TWENTY_PARTNERS_API_KEY).`,
);
}
}
if (failures.length > 0) {
console.error('check-partners-marketplace-routes: FAILED');
for (const failure of failures) {
console.error(` ${failure}`);
}
process.exit(1);
}
console.log('check-partners-marketplace-routes: OK');