vite icon indicating copy to clipboard operation
vite copied to clipboard

fix: external URLs don't have to start with http(s)

Open asivery opened this issue 8 months ago • 20 comments

Description

Right now, when building, vite checks if the base provided is an external URL by checking if it starts with https:// or http://. This doesn't have to be the case. When working with electron, for example, one can create a custom protocol, then load the page with it. Right now setting the base to sandbox:// causes a broken app in electron. This PR fixes it.

asivery avatar Jun 01 '24 13:06 asivery