In the release build, Tauri does not render anything. After a bit of Googling, I found the same issue, but I am still confused about the right CSP configuration to set when using CSS-in-JS libraries like styled-components.
Right now, this is my CSP:
"csp": "default-src 'self'"


Okay, I finally ended up with this configuration in the tauri.conf.json file. Is this the right way to do it? I don't know. I'm leaving my answer here so people who come here may find this useful.
EDIT:
I guess "unsafe-inline" is okay.
Related: https://github.com/tauri-apps/tauri/discussions/8578