Skip to content

Commit da587ef

Browse files
committed
fixup!
1 parent 51ec748 commit da587ef

4 files changed

Lines changed: 39 additions & 7 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Build Next.js
6161
# We want a ISR build on CI to ensure that regular Next.js builds work as expected.
62-
run: node_modules/.bin/turbo build --cache-dir=.turbo/cache
62+
run: node_modules/.bin/turbo build --filter=@node-core/website --cache-dir=.turbo/cache
6363
env:
6464
# We want to ensure we have enough RAM allocated to the Node.js process
6565
# this should be a last resort in case by any chances the build memory gets too high
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: Build Next.js (Static Export)
7878
# We want to generate a static build, as it is a requirement of our website.
79-
run: node_modules/.bin/turbo deploy --cache-dir=.turbo/cache
79+
run: node_modules/.bin/turbo deploy --filter=@node-core/website --cache-dir=.turbo/cache
8080
env:
8181
# We want to ensure we have enough RAM allocated to the Node.js process
8282
# this should be a last resort in case by any chances the build memory gets too high

‎apps/site/turbo.json‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"extends": ["//"],
44
"tasks": {
55
"dev": {
6-
"dependsOn": ["build:blog-data", "^build"],
6+
"dependsOn": [
7+
"build:blog-data",
8+
"@node-core/rehype-shiki#build",
9+
"@node-core/remark-lint#build",
10+
"@node-core/ui-components#build",
11+
"@node-core/website-i18n#build"
12+
],
713
"cache": false,
814
"persistent": true,
915
"env": [
@@ -22,7 +28,13 @@
2228
]
2329
},
2430
"build": {
25-
"dependsOn": ["build:blog-data", "^build"],
31+
"dependsOn": [
32+
"build:blog-data",
33+
"@node-core/rehype-shiki#build",
34+
"@node-core/remark-lint#build",
35+
"@node-core/ui-components#build",
36+
"@node-core/website-i18n#build"
37+
],
2638
"inputs": [
2739
"{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx}",
2840
"{app,components,layouts,pages,styles}/**/*.css",
@@ -116,7 +128,13 @@
116128
"cache": false
117129
},
118130
"test:unit": {
119-
"dependsOn": ["build:blog-data", "^build"],
131+
"dependsOn": [
132+
"build:blog-data",
133+
"@node-core/rehype-shiki#build",
134+
"@node-core/remark-lint#build",
135+
"@node-core/ui-components#build",
136+
"@node-core/website-i18n#build"
137+
],
120138
"inputs": [
121139
"{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx,mjs}",
122140
"{app,components,layouts,pages,styles}/**/*.css",

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"name": "Node.js Website Team and Contributors"
1414
},
1515
"scripts": {
16-
"build": "turbo build",
16+
"build": "turbo build --filter=@node-core/website",
1717
"changeset": "changeset",
1818
"changeset:version": "changeset version",
19-
"deploy": "turbo deploy",
19+
"deploy": "turbo deploy --filter=@node-core/website",
2020
"dev": "turbo dev",
2121
"format": "turbo //#prettier:fix prettier:fix lint:fix",
2222
"lint": "turbo lint",

‎platforms/cloudflare/next.config.mjs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,18 @@ export default {
1818
// runs.
1919
loaderFile: '../../platforms/cloudflare/image-loader.ts',
2020
},
21+
// `NODE_OPTIONS=--conditions=cloudflare` only applies to Node's own resolver,
22+
// which is what loads this file. The bundler resolves `#platform/*` with its
23+
// own set of conditions, so it must be told about `cloudflare` separately —
24+
// without this, the bundled code falls back to `platforms/default`.
25+
webpack: config => {
26+
config.resolve.conditionNames = [
27+
'cloudflare',
28+
// Anything already configured by Next.js, which in turn inherits
29+
// webpack's defaults through the `'...'` entry.
30+
...config.resolve.conditionNames,
31+
];
32+
33+
return config;
34+
},
2135
};

0 commit comments

Comments
 (0)