1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Ionic/Angular app working locally but not hosted

Discussão em 'Angular' iniciado por Uncle_batty, Outubro 6, 2024.

  1. Uncle_batty

    Uncle_batty Guest

    i have an ionic app with angular 18 when i run ng serve or ionic serve it works but when i push it to git to deploy on my azure static web app it displays juts the bg same as if i try to build an APK with capacitor

    Hosted [​IMG]

    Local [​IMG]

    This is my angular.config

    "projects": { "app": { "projectType": "application", "schematics": { "@ionic/angular-toolkit:page": { "styleext": "scss", "standalone": true } }, "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "www", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ { "glob": "**/*", "input": "src/assets", "output": "assets" }, "src/manifest.webmanifest", "src/manifest.webmanifest" ], "styles": ["src/global.scss", "src/theme/variables.scss"], "scripts": [], "serviceWorker": true, "ngswConfigPath": "ngsw-config.json", "optimization": { "styles": { "inlineCritical": false } } }, "configurations": { "production": { "serviceWorker": false, "budgets": [ { "type": "initial", "maximumWarning": "2mb", "maximumError": "5mb" }, { "type": "anyComponentStyle", "maximumWarning": "8kb", "maximumError": "5mb" } ], "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ], "outputHashing": "all" }, "development": { "buildOptimizer": false, "optimization": false, "vendorChunk": true, "extractLicenses": false, "sourceMap": true, "namedChunks": true }, "ci": { "progress": false } }, "defaultConfiguration": "production" },

    Index.html when i open it from www folder is also blank

    I have tired changing the base and different build types even asked GPT but nothing

    Continue reading...

Compartilhe esta Página