class ViteRuby::DevServerProxy

def vite_url_prefix

If the path starts with that prefix, it will be redirected to Vite.

be customized by the user in development to not match any of the routes.
NOTE: Vite is configured to use 'public_output_dir' as the base, which can
def vite_url_prefix
  @vite_url_prefix ||= config.public_output_dir.empty? ? VITE_DEPENDENCY_PREFIX : "/#{ config.public_output_dir }/"
end