How to serve angular 2 using amazon s3

前端 未结 3 1918
野性不改
野性不改 2021-02-07 12:28

Is it possible to use amazon s3 to serve angular 2 app without using a dedicated server. If so how to proceed ?

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 12:46

    No, it is not possible to run angular2 using amazon s3 without dedicated server. According to Angular2 Docs, you need at least little server to run those files. What you can do, is to run NodeJs server on E3 or ESB, and deploy your angular2 app there.

    Thanks to @Gunter for pointing out - this can't be done without additional command line parameters.

提交回复
热议问题