You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workbench/nextjs-webpack/README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,12 @@
2
2
3
3
This directory is mostly a clone of the turbopack workbench with nearly everything symlinked to the directory.
4
4
5
-
The `package.json` is notably different - it does NOT use `--turbo` to force webpack bundling.
5
+
The `package.json` is notably different - it uses `--webpack` for dev and build modes.
6
6
7
7
## Symlinks
8
8
9
9
Most files/directories are symlinked to `../nextjs-turbopack`:
10
+
10
11
-`app/` - All files inside are symlinked (not the directory itself)
11
12
-`workflows/` - Symlinked directory
12
13
-`util/` - Symlinked directory
@@ -17,15 +18,18 @@ Most files/directories are symlinked to `../nextjs-turbopack`:
17
18
-`turbo.json` - Symlinked file
18
19
19
20
A few specific files are NOT symlinked:
21
+
20
22
-`app/favicon.ico` - Real file (symlink doesn't work with Next.js)
21
23
-`app/.well-known/` - Generated directory by workflow
22
24
-`.gitignore` - Real file
23
25
-`next.config.ts` - Different configuration (webpack-specific)
24
-
-`package.json` - Different configuration (no `--turbo` flag)
26
+
-`package.json` - Different configuration (`--webpack` flag)
25
27
26
28
## CI Symlink Resolution
27
29
28
30
Next.js dev mode doesn't work well with symlinks. In CI, the `resolve-symlinks.sh` script automatically runs before starting the dev server to replace all symlinks with actual file copies. The script:
31
+
29
32
- Only runs when `CI` environment variable is set
30
33
- Resolves all symlinks in the directory (excluding gitignored files like `node_modules`)
31
-
- Preserves the directory structure while replacing symlinks with real files
34
+
- Preserves the directory structure while replacing symlinks with real files
0 commit comments