using nginx to deploy vue projects has been reporting errors all the time, which has been bothering me for several days. Does any god know why?
here is my nginx configuration:
import Vue from "vue"
import Router from "vue-router"
import HelloWorld from "@/components/HelloWorld"
import DefaultPage from "@/components/DefaultPage"
Vue.use(Router)
export default new Router({
mode: "history",
routes: [
{
path: "/",
name: "HelloWorld",
component: HelloWorld
},
{
path: "*",
name: "DefaultPage",
component: DefaultPage
}
]
})
nginx error message:
2018/07/02 14:26:01 [error] 5-sharp5: *25 rewrite or internal redirection cycle while redirect to named location "@rewrites"