Ionic build generates index.html at the wrong place

Hi, newby here.

When I execute “ionic build” the output gets generated under www/browser. I would like to get the output under www instead.

These are my options inside angular.json:

         "options": {
            "outputPath": "www",
            "index": "src/index.html",
            "polyfills": [
              "src/polyfills.ts"
            ],
            "tsConfig": "tsconfig.app.json",
            "inlineStyleLanguage": "scss",
            "assets": [
              {
                "glob": "**/*",
                "input": "src/assets",
                "output": "assets"
              }
            ],
            "styles": ["src/global.scss", "src/theme/variables.scss"],
            "scripts": [],
            "browser": "src/main.ts"
          },

And this is my capacitor.config.ts file (not sure if this is relevant):

import type { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: 'io.ionic.starter',
  appName: 'myapp',
  webDir: 'www',
  bundledWebRuntime: false
};

export default config;

I don’t understand why the output gets into www/browser. Are there any other relevant settings that force the build to create this subdirectory?