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

Discussão em 'Angular' iniciado por Bernd, Julho 29, 2025.

  1. Bernd

    Bernd Guest

    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.

    Continue reading...

Compartilhe esta Página