`import.meta.glob` in nextjs?
Unanswered
American Golden-Plover posted this in #help-forum
American Golden-PloverOP
I am porting a vite app to nextjs and I was searching for a similar feature like glob imports in vite. Is there anything similar to that in nextjs?
Below is following code using vite
Below is following code using vite
glob importconst modelPaths = Object.keys(import.meta.glob('/public/models/*.3mf')).map((path) =>
path.replace(/\/public/g, '')
);