Load 3DM server side


Trying to load a 3DM model server side (using Next.JS), however I am finding it so difficult.

I am following this guide from Data Fetching: getStaticProps | Next.js,
which says I need to use FS to import using getStaticProps although I still can’t get it parsed by the loader.

This is the error I am getting from the loader:

Would appreciate if anyone tried this before and could give me a hint.