yooneskh/vite-tauri-template

VITE_HTTP_HANDLER is not recognized as an internal or external command

Congb19 opened this issue · 3 comments

When I run serve:native script (VITE_HTTP_HANDLER=NATIVE vite --port 8080),
console: VITE_HTTP_HANDLER is not recognized as an internal or external command

what can i do with it?

Are you on windows?

Are you on windows?

Yes! I will try macos later!
but what should i do on windows that can solve the problem?

on windows you must replace the script with this

set VITE_HTTP_HANDLER=NATIVE && vite --port 8080