Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1521

How to setup Angular "Native Federation" to serve via https in development mode

$
0
0

My regular Angular setup for the "serve" section in angular.json looks like this:

"serve": {"builder": "@angular-devkit/build-angular:dev-server","options": {"sslKey": "./dev-server-certs/localhost.key","sslCert": "./dev-server-certs/localhost.crt","ssl": true    }},

This works well. Now I've created a shell application which should load other micro frontends. The automatically generated "serve" section (created by Native Federation) looks like this:

"serve": {"builder": "@angular-architects/native-federation:build",                  "options": {"target": "shell:serve-original:development","rebuildDelay": 0,"dev": true,"port": 0    }}

I tried to add the ssl... keys too, but when running ng serve I still get http://localhost:4xxx as the link to be used. I was not able to find a way how to serve the new shell application (and the remotes) via https.


Viewing all articles
Browse latest Browse all 1521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>