You have set up a CSP policy and are using code that doesn't align with the policy. So either you need to change the code or add the policy to allow it.
Also note, the Vite dev-server would do a lot more than a production build. It performs a lot more "unsafe" executions, which you likely don't want to do on a production environment.