unocss: __unocss_ready/1639148123556 are not found.

I use Unocss with Inertiajs and Vite in Laravel. They are running on two different hosts. And I got errors as follows:

http://localhost/__unocss_ready/1639148123556 
404 Not Found

This is the domain name of the master site (Laravel with Inertia), but Vite is on http://localhost:3000.

And I found some code in Unocss

const READY_CALLBACK_DEFAULT = "/__unocss_ready";

I guess that’s why it’s wrong. Didn’t find a way to customize it. Any help?

Btw, That doesn’t seem to affect Unocss’s work.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 23 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I’ll fix it: we need to add the base to the generated fetch code.