Skip to content

meta: re-enable turbo prod/dev builds #7830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/site/open-next.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { defineCloudflareConfig } from '@opennextjs/cloudflare';
import incrementalCache from '@opennextjs/cloudflare/overrides/incremental-cache/kv-incremental-cache';

export default defineCloudflareConfig({ incrementalCache });
const cloudflareConfig = defineCloudflareConfig({ incrementalCache });

export default { ...cloudflareConfig, buildCommand: 'pnpm build:default' };
17 changes: 9 additions & 8 deletions apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
"name": "@node-core/website",
"type": "module",
"scripts": {
"prebuild": "pnpm build-blog-data",
"build": "cross-env NODE_NO_WARNINGS=1 next build",
"prebuild": "pnpm build:blog-data",
"build": "pnpm build:default --turbo",
"build:default": "cross-env NODE_NO_WARNINGS=1 next build",
"build:blog-data": "node ./scripts/blog-data/generate.mjs",
"build:blog-data:watch": "node --watch --watch-path=pages/en/blog ./scripts/blog-data/generate.mjs",
"check-types": "tsc --noEmit",
"deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true NODE_NO_WARNINGS=1 next build",
"dev": "cross-env NODE_NO_WARNINGS=1 next dev",
"deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true pnpm build:default",
"dev": "cross-env NODE_NO_WARNINGS=1 next dev --turbo",
"lint": "turbo run lint:md lint:js lint:css",
"lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache",
"lint:fix": "turbo run lint:md lint:js lint:css --no-cache -- --fix",
Expand All @@ -20,11 +23,9 @@
"test": "turbo test:unit",
"test:unit": "cross-env NODE_NO_WARNINGS=1 node --experimental-test-coverage --test-coverage-exclude=**/*.test.* --experimental-test-module-mocks --enable-source-maps --import=global-jsdom/register --import=tsx --import=tests/setup.jsx --test **/*.test.*",
"test:unit:watch": "cross-env NODE_OPTIONS=\"--watch\" pnpm test:unit",
"build-blog-data": "node ./scripts/blog-data/generate.mjs",
"build-blog-data:watch": "node --watch --watch-path=pages/en/blog ./scripts/blog-data/generate.mjs",
"cloudflare:build:worker": "opennextjs-cloudflare build",
"cloudflare:preview": "wrangler dev",
"cloudflare:deploy": "wrangler deploy"
"cloudflare:deploy": "wrangler deploy",
"cloudflare:preview": "wrangler dev"
},
"dependencies": {
"@heroicons/react": "~2.2.0",
Expand Down
10 changes: 5 additions & 5 deletions apps/site/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"globalEnv": ["NODE_ENV"],
"tasks": {
"dev": {
"dependsOn": ["build-blog-data"],
"dependsOn": ["build:blog-data"],
"cache": false,
"persistent": true,
"env": [
Expand All @@ -25,7 +25,7 @@
]
},
"build": {
"dependsOn": ["build-blog-data", "^build"],
"dependsOn": ["build:blog-data", "^build"],
"inputs": [
"{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx}",
"{app,components,layouts,pages,styles}/**/*.css",
Expand Down Expand Up @@ -120,7 +120,7 @@
"cache": false
},
"test:unit": {
"dependsOn": ["build-blog-data"],
"dependsOn": ["build:blog-data"],
"inputs": [
"{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx,mjs}",
"{app,components,layouts,pages,styles}/**/*.css",
Expand All @@ -130,12 +130,12 @@
],
"outputs": ["coverage/**", "junit.xml"]
},
"build-blog-data": {
"build:blog-data": {
"inputs": ["{pages}/**/*.{mdx,md}"],
"outputs": ["public/blog-data.json"]
},
"cloudflare:build:worker": {
"dependsOn": ["build-blog-data"],
"dependsOn": ["build:blog-data"],
"inputs": [
"{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx}",
"{app,components,layouts,pages,styles}/**/*.css",
Expand Down
Loading