Repository navigation
|
Related to this discussion, I'm using a
All works well while running I tried to change it to a plugin by doing:
The action executes, but too late. I also tried other hooks like What would be the correct way to do this in Nuxt Bridge? |
Answered by
Jesus82
Sep 8, 2023
Replies: 1 comment
|
Solution was to rename the file to
and add it to the plugins object in
Then no need for a hook as it executes on server side |
0 replies
Answer selected by
Jesus82
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution was to rename the file to
plugins/01.init.server.tsand add it to the plugins object in
nuxt.config.ts(very important, if not it doesn't work)plugins: [{ src: '~/plugins/01.init.server' }],Then no need for a hook as it executes on server side