Commit 49347fd
authored
fix(createServer): use addHook instead of ready (redwoodjs#9871)
Fixes the issue @Tobbe and I were seeing in studio:
```
~/redwood-project/node_modules/avvio/boot.js:244
throw new AVV_ERR_ROOT_PLG_BOOTED()
^
AvvioError [Error]: Root plugin has already booted
...
```
`fastify.ready` actually starts the server. All this is doing is
logging. We want to use `addHook` instead. Follow up to
redwoodjs#9845.1 parent fca8d7a commit 49347fd
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
0 commit comments