Skip to content

Commit 88224a6

Browse files
committed
add links to repro for i18n problems
1 parent 2341079 commit 88224a6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

adapters-notes.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
or `wasm` (tho wasm files are included in assets, so I think I have a way to support those as-is,
1515
but need to to make some assumption about using extension-less file name of wasm file as
1616
identifier)
17-
- `outputs.staticFiles` (i18n enabled) custom fully static (no `getStaticProps`) `/pages/404.js`
18-
`filePath` point to not existing file (it doesn't have i18n locale prefix in `staticFiles` array,
19-
actual 404.html are written to i18n locale prefixed directories)
20-
- `outputs.staticFiles` (i18n enabled) custom `/pages/404.js` with `getStaticProps` result in fatal
21-
`Error: Invariant: failed to find source route /en/404 for prerender /en/404` directly from
17+
- `outputs.staticFiles` (i18n enabled) custom fully static (no `getStaticProps`) `/pages/*`
18+
`filePath` point to not existing file - see repro at https://github.com/pieh/i18n-adapters
19+
- `outputs.staticFiles` (i18n enabled) custom `/pages/*` with `getStaticProps` result in fatal
20+
`Error: Invariant: failed to find source route /en(/*) for prerender /en(/*)` directly from
2221
Next.js:
2322

2423
```
@@ -31,7 +30,10 @@
3130
(additionally - invariant is reported as failing to run `onBuildComplete` from adapter, but it
3231
happens before adapter's `onBuildComplete` runs, would be good to clear this up a bit so users
3332
could report issues in correct place in such cases. Not that important for nearest future / not
34-
blocking)
33+
blocking).
34+
35+
See repro at https://github.com/pieh/i18n-adapters (it's same as for point above, need to
36+
uncomment `getStaticProps` in one of the pages in repro to see this case)
3537

3638
- `output: 'export'` case seems to produce outputs as if it was not export mode (for example having
3739
non-empty `outputs.appPages` or `outputs.prerenders`). To not have special handling for that in

0 commit comments

Comments
 (0)