使文件在Angular 7路线上可用 [英] Make file available at route Angular 7

查看:124
本文介绍了使文件在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆