[Vuejs]-Is it possible to host a vue.js app with dynamic routes in history mode as a static website on S3/Cloudfront?

0👍

S3 hosting is a hosting for Static Pages, what automatically disallow implementation of Universal mode for Nuxt.js. You can either deploy SPA or Generated pages on the S3.

Vue.js uses Single Page Application mode (SPA) to generate and create the app. This mean, that the app is accessed using index.html and uses hash-based routing (client-side rendering only). You can read about it here: HashRouter vs BrowserRouter

Luckily enough, Vue.js supports a dynamic route matching, which can be achieved by implementing Vue Router in the way described here: https://router.vuejs.org/guide/essentials/dynamic-matching.html

Leave a comment