File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 14
14
or ` wasm ` (tho wasm files are included in assets, so I think I have a way to support those as-is,
15
15
but need to to make some assumption about using extension-less file name of wasm file as
16
16
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
22
21
Next.js:
23
22
24
23
```
31
30
(additionally - invariant is reported as failing to run ` onBuildComplete ` from adapter, but it
32
31
happens before adapter's ` onBuildComplete ` runs, would be good to clear this up a bit so users
33
32
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)
35
37
36
38
- ` output: 'export' ` case seems to produce outputs as if it was not export mode (for example having
37
39
non-empty ` outputs.appPages ` or ` outputs.prerenders ` ). To not have special handling for that in
You can’t perform that action at this time.
0 commit comments