From feac2df21675b6f78a030d64421146161fc1cf4f Mon Sep 17 00:00:00 2001 From: Rashad Karanouh <11599358+rashad@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:12:12 +0400 Subject: [PATCH] chore(website): remove partners marketplace route lint guard (#22121) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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 Review in cubic --- packages/twenty-website/project.json | 2 +- .../check-partners-marketplace-routes.mjs | 31 ------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 packages/twenty-website/scripts/check-partners-marketplace-routes.mjs diff --git a/packages/twenty-website/project.json b/packages/twenty-website/project.json index 0fe0d98ad9..ca84969c31 100644 --- a/packages/twenty-website/project.json +++ b/packages/twenty-website/project.json @@ -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": { diff --git a/packages/twenty-website/scripts/check-partners-marketplace-routes.mjs b/packages/twenty-website/scripts/check-partners-marketplace-routes.mjs deleted file mode 100644 index 9f4e44154d..0000000000 --- a/packages/twenty-website/scripts/check-partners-marketplace-routes.mjs +++ /dev/null @@ -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');