Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Vue from 'vue'
- import Router from 'vue-router'
- import Home from '@/components/Home'
- import Error404 from '@/components/Error/404'
- Vue.use(Router)
- export default new Router({
- routes: [
- {
- path: '/',
- name: 'Home',
- component: Home
- },
- ......
- {
- path: '/404',
- name: 'error404',
- component: Error404
- },
- {
- path: '*',
- name: 'error404',
- component: Error404
- }
- ],
- mode: 'history'
- })
- [[redirects]]
- from = "/sitemap"
- to = "http://s3.xxx.amazonaws.com/xxx/sitemap.xml"
- status = 200
- force = true
Add Comment
Please, Sign In to add comment