Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

'https' parameter isn't available #73

Closed
deep8317 opened this issue Oct 13, 2020 · 4 comments
Closed

'https' parameter isn't available #73

deep8317 opened this issue Oct 13, 2020 · 4 comments

Comments

@deep8317
Copy link

As mentioned in the documentation, I am using endpoint routing for development. Also, I installed an SSL certificate using mkcert. Now, I am getting an error Failed to proxy the request to http://localhost:8080/

The reason is: Vue.js app is now running at https://localhost:8080

I have tried to include https: true within endpoints.MapToVueCliProxy( "{*path}", new SpaOptions { SourcePath = "ClientApp" }, npmScript: "serve", regex: "Compiled successfully", forceKill: true); but https parameters doesn't exist in MapToVueCliProxy extension method.

I am using VueCliMiddleware V 3.1.1 via NuGet package.

Please advice further to resolve this issue.

Thanks.

@bryandam
Copy link

The problem is that @EEParker hasn't released a new NPM package with that code as tracked by issue #53.

@deep8317
Copy link
Author

@bryandam Thanks for your response.

I have referenced the library manually to make things work and test the project locally.

@EEParker Are you planning to update the NuGet package anytime soon? Thank you!

@TobbenTM
Copy link
Contributor

TobbenTM commented Oct 14, 2020

@deep8317

As an alternative, I made a PR to make this experience better here: #74

If you want to use this before it gets merged and released, you can simply update your Vue CLI to a recent version (>= 4.5.0), and add the following environment variable:

image

@EEParker
Copy link
Owner

This should be live on nuget as version 3.1.2, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants