以下是构建命令:ng build --configuration = qa --aot = false --base-href =
尽管,如果我只是尝试从浏览图像:https://mfqa.credivia.com/assets/images/logo.png而不是https://mfqa.credivia.com/borrower/assets/images/logo.png,图像被加载。
问题:尝试检索图像时,将添加相对URL路径。
已检查:
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": false,
"assets": [
"src/favicon.ico",
"src/assets"
],
我在本地环境中的Angular应用程序能够加载图像,但是在通过AWS代码构建在生产环境中部署后,它显示403错误。以下是构建命令:ng build --configuration = qa --...