C
C#•8mo ago
F

ASP.NET project the latest frontend push killed the SSL certificate for localhost.

Has anyone here came across this before? The project template was ASP.NET + React project in Visual Studio
23 Replies
canton7
canton7•8mo ago
There's almost no information here for anyone to go on, I'm afraid
F
FOP•8mo ago
So i have an ASP.NET X React project under one Solution in Visual Studio. project.client = frontend Project.Server = backend
Pobiega
Pobiega•8mo ago
Does it run as one or two process?
F
FOP•8mo ago
last week we used a way different structure for the projects and we remade it this past weekend to be like this:
No description
Pobiega
Pobiega•8mo ago
Ie, does your dev build bundle the FE app, or do you run it separately with a dev proxy?
F
FOP•8mo ago
I dont believe so 😮 Its just a basic app with a backend and frontend. Where we are meant to simulate a company by working together to create a full app/website in a couple weeks Point is the frontend section merged their data to main and somehow altered the SSL certificate; So now https:// does not work the project only works with http. as such the problem has to do with the SSL certificate for localhost
Pobiega
Pobiega•8mo ago
how do you run the project?
F
FOP•8mo ago
No description
Pobiega
Pobiega•8mo ago
also, show me the vite.config.js file right, so its two processes with a dev proxy
F
FOP•8mo ago
we run both projects like this first time hearing that! But i'll remember that lol
Pobiega
Pobiega•8mo ago
(thats good, thats the way you should run it) enables hot reload etc
F
FOP•8mo ago
Vite is pretty empty
No description
Pobiega
Pobiega•8mo ago
hm yeah I was expecting a dev proxy there
F
FOP•8mo ago
Very strange; To make them run alongside eachother we're using Cors for now but the problem lies with the frontend not the backend
Pobiega
Pobiega•8mo ago
normally what you do is you set up a proxy route and redirect from the FE to the BE ie, frontend makes a request to /api/... and its redirected to localhost:12345/api/...
F
FOP•8mo ago
Yeah thats exactly what we're doing too haha
Pobiega
Pobiega•8mo ago
well. uh... where is that proxying set up?
F
FOP•8mo ago
from the backend section with endpoints
Pobiega
Pobiega•8mo ago
.. what? huh but your FE is the entrypoint to the application
F
FOP•8mo ago
For some reason i read that as API endpoints. Can we jump into a voice call? if possible?
Pobiega
Pobiega•8mo ago
im assuming your FE is a SPA, maybe thats not correct? hm. gimmie a min need to find an empty meeting room
F
FOP•8mo ago
No rush 😄
Pobiega
Pobiega•8mo ago
#vc-2
Want results from more Discord servers?
Add your server