![](/img/trans.png)
[英]How to set up an Angular project for iOS universal links and Android asset links to open links in the native mobile apps
[英]How to setup IOS and Android universal link on Angular project
我在 src 下創建了.well-known
文件並將assetlinks.json file
放入assetlinks.json file
.well-known
。 如下配置angular.json
文件后。 當我調用 url http://localhost:4200/.well-known/assetlinks.json
重定向到 404 頁面時。 我想公開 assetlinks.json 文件。 我該如何解決?
"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": []
},
該 url 在構建項目后工作。 在dist
下創建的知名文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.