partap
Server-only modules for Nitro
Hello all. I'm just starting to work with nuxt...I got a basic app running, and then added some modules in the server/ directory to interface with my existing SQL Server database in order to implement logins and sessions.
However, this seems to have broken nuxt.
I'm seeing in the browser devtools console that nuxt is trying to load all my server/lib/db files and choking on the node-mssql library. I thought everything in the server/ directory was server-only, but apparently not...
What is the preferred method for adding modules for use only in the server side api handlers so it won't try to load them on the client?
Thanks!
4 replies