-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support https in AddViteApp extension #518
Comments
I have made the changes on this branch https://github.com/TechWatching/Aspire/tree/feature/https-viteapp but I have trouble understanding how to manage the PublicAPI.Shipped errors even by following this documenation. |
What does AddViteApp do? How is it different from AddNpmApp?? |
It calls So there is an easy workaround by directly calling |
It's very strange that this method exists and does nothing vite specific. |
Yes, I I think it's just a convenient method for people using |
(the code on my branch seems to work now by the way) |
I also don't see why this exist as you generally add a |
The standard vite app used So sure, you can add I see no issue with the extension existing. |
What's the problem you're hitting? It might be because you've changed the overload with the new parameter, so you have to mark the old method as removed in the Unshipped file. See https://github.com/CommunityToolkit/Aspire/pull/465/files#diff-f2743000bd274b09c37fe462e8d90168603669030d2eb615bd69dc981773a8aeR15 as an example. |
Don’t take this as push back, but I don’t expect our guidance to use this method when we build out more native support for front end JavaScript framework integration (which we’re looking at). |
Yes, indeed, that is fine now. I published the PR, but if you don't agree to make this breaking change, feel free to reject it. I've just published an article showing how to use .NET Aspire with Nuxt (Vue.js framework using Vite) and mentioned |
when that lands we'd re-evaluate the role of the NodeJS.Exensions package anyway. |
Related to an existing integration?
Yes
Existing integration
Node.js hosting extensions
Overview
Currently, the AddViteApp method in the NodeJSHostingExtensions does not support using configuring an HTTPS endpoint. Adding
Usage example
Breaking change?
I'm not sure
Alternatives
Use directly
AddPnpmApp
and manually configure the https endpoint.Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered: