Skip to content

serverless-http模板问题 #121

Answered by cloud2303
cloud2303 asked this question in 问答
Discussion options

You must be logged in to vote

感谢大佬的pr cloud2303/remix-scf#1 (comment)

另外,自定义域名映射的问题我也解决了

customMap: false ,isDefaultMapping: false 这两个得一起设置为false,这样就可以自定义映射路径了,非常感谢大佬的帮忙♥️

 apigw: # http 组件会默认帮忙创建一个 API 网关服务
    api: # 创建的 API 相关配置
      cors: true #  允许跨域
    protocols:
      - http
      - https
    environment: release
    customDomains: # 自定义域名绑定
      - domain: hello.abc.com # 待绑定的自定义的域名
        certId: yoursslID # 待绑定自定义域名的证书唯一 ID
        customMap: false #自定义映射路径 不能删
        isDefaultMapping: false  #自定义映射路径  不能删
        pathMap:
          - path: /
            environment: release
        protocols: # 绑定自定义域名的协议类型,默认与服务的前端协议一致。
          - http # 支持http协议
          - https # 支持https协议

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cloud2303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
1 participant