ThreeJs for production as an indpendent project

Hello Everyone,

I am creating a project that is based on the threejs Editor, I have copied all editor files to a new project and done some changes. It works perfectly fine in development. However, when I run it in production it does not work and give me lots of errors. I am using nginx server.

In the editor folder i am not sure which js file to point to in the rollup.config.js file as the input for my app?

I tried using npx vite, webpack, rollup for building and all did not work.