slidev
slidev copied to clipboard
Error: allowhost not found in vite.config.js when accessing remote Slidev deployment on cloud platform
I'm deploying Slidev on a cloud-based build platform that provisions an HTTPS domain (e.g., https://cnb-n78-1il2g0h7m-001-3030.cnb.cool/). When launching in remote mode and accessing the mapped domain, I encounter an error stating 'allowhost' is missing in vite.config.js. Adding a vite.config.js file to my Slidev-generated project doesn't resolve the issue. What would be the best way to address this?
I have same issue. Could you please help
See https://github.com/slidevjs/slidev/issues/2144#issuecomment-3531706811. Although this issue was opened earlier, let's move to #2144 because there is more discussion there.