[英]How to setup IOS and Android universal link on Angular project
I created .well-known
file under the src and put assetlinks.json file
inside to .well-known
.我在 src 下创建了.well-known
文件并将assetlinks.json file
放入assetlinks.json file
.well-known
。 After configurated angular.json
file as follows.如下配置angular.json
文件后。 When I call the url http://localhost:4200/.well-known/assetlinks.json
redirected to 404 page.当我调用 url http://localhost:4200/.well-known/assetlinks.json
重定向到 404 页面时。 I want to public assetlinks.json file.我想公开 assetlinks.json 文件。 How can I solve?我该如何解决?
"options": {
"outputPath": "dist/p",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
{
"glob": "**/*",
"input": "src/.well-known",
"output": ".well-known/"
},
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
},
The url is worked after build project.该 url 在构建项目后工作。 Well-known file created under dist
.在dist
下创建的知名文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.