You need to recompile it with the root as a public URL and place directly in the web folder.
could you please provide more details (documentation) for this ?
I would recommend checking create react app documentation. It should have all the information you need. It's not something specific to Traccar.
how do enable the modern ui as the default when running the app and building it?