Commit eee5ffc
committed
fix: lazy-resolve useRuntimeConfig in withSigning
Avoids pulling nitro virtual modules (#imports) into unit tests that
import handler files for their exported utilities (e.g. instagram-embed
exports rewriteUrl/scopeCss alongside its default handler). The dynamic
import only runs at request time inside the nitro runtime where #imports
is available.1 parent 2b6605d commit eee5ffc
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
0 commit comments