My site reloads when i add a server action to generate headers for external api calls.
Unanswered
Capelin posted this in #help-forum
CapelinOP
This is my code
- The functions
- Initially, these functions were returning
- After some research, I discovered that updating the middleware file (named
- However, this fix causes the website to reload approximately 4-5 times on each visit.
Please help mee checkk
- The functions
generatorRawSignature
and generatorDeviceUID
are implemented as server actions.- Initially, these functions were returning
undefined
after definition.- After some research, I discovered that updating the middleware file (named
middleware
) resolves this issue.- However, this fix causes the website to reload approximately 4-5 times on each visit.
Please help mee checkk