You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or.. How do we only fetch data in a node context / use node-only data fetching dependencies?
Since use-case is static builds, I want to fetch data only during build.
In fact, I'm trying to build a bundle-less site, so my expectation is client-side context should never come into play with this static function.
Using firebase-admin, it shows errors related to missing node libraries.
Tried to copy something similar from a next.js discussion vercel/next.js#219 (comment)
not surprisingly it didn't work.
Thanks for this library by the way!
The text was updated successfully, but these errors were encountered:
constnodeExternals=require('webpack-node-externals')module.exports={target: 'node',// in order to ignore built-in modules like path, fs, etc.externals: [nodeExternals()],// in order to ignore all modules in node_modules folder}
Or.. How do we only fetch data in a node context / use node-only data fetching dependencies?
Since use-case is static builds, I want to fetch data only during build.
In fact, I'm trying to build a bundle-less site, so my expectation is client-side context should never come into play with this static function.
Using
firebase-admin
, it shows errors related to missing node libraries.Tried to copy something similar from a next.js discussion vercel/next.js#219 (comment)
not surprisingly it didn't work.
Thanks for this library by the way!
The text was updated successfully, but these errors were encountered: