使文件在Angular 7路线上可用 [英] Make file available at route Angular 7
问题描述
我遇到了一个我不知道该如何解决的问题.
I'm facing a problem I don't know how to resolve.
我正在尝试使用Stripe的PaymentRequest将我的网站与Apple Pay集成.但是,我遇到了他们的先决条件.我不知道如何在
I'm trying to integrate my website with Apple Pay using Stripe's PaymentRequest. However, I'm having trouble with one of their requisites. I don't know how to make that file available at the route
https://exampledomain.com/.well-known/apple-developer-merchantid-domain-association
有人可以帮忙吗?
推荐答案
如果您希望移动一些静态文件来构建路径,则可以使用 angular.json
例如:
If you wish to move some static files to build paths you can use angular.json
for example:
{
...
"projects": {
...
"#project_name#": {
...
"architect": {
...
"build": {
...
"options": {
"outputPath": "./build/path/to/project-root/",
...
"assets": [ { "glob": "*", "input": "./src/static", "output": "." },
...
这会将 ./src/static
文件夹中的文件移动到 build/path/to/project-root/
,输出路径取决于某些构建配置,例如-输出路径
也许还有其他东西.
This would move files inside ./src/static
folder to build/path/to/project-root/
the output path depends on some build configuration like --output-path
and maybe something else.
这篇关于使文件在Angular 7路线上可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!