slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Error: allowhost not found in vite.config.js when accessing remote Slidev deployment on cloud platform

Open jaguarliuu opened this issue 10 months ago • 1 comments

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?

jaguarliuu avatar Feb 27 '25 01:02 jaguarliuu

I have same issue. Could you please help

nhha1602 avatar Oct 30 '25 09:10 nhha1602

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.

kermanx avatar Nov 14 '25 09:11 kermanx