Vue.js Router: history mode and AWS S3 (RoutingRules)

前端 未结 5 1462
难免孤独
难免孤独 2021-01-31 10:03

I have a Vue.js application up and running with Amazon S3 and Cloudflare.

When I open the index and browse to /dashboard, everything works fine. But when I open a route

5条回答
  •  星月不相逢
    2021-01-31 10:47

    If you use static hosting on AWS S3 and this is SPA app (React, Vue, Angular etc) you should set index.html as error page:

提交回复
热议问题