Skip to content
Snippets Groups Projects
Commit edd6a7c9 authored by Adam Procter's avatar Adam Procter
Browse files

edits

parent 18268cd1
No related branches found
No related tags found
No related merge requests found
NGINX.md 0 → 100644
server {
listen 217.147.85.104:80;
server_name \*.nodenogg.in;
root /var/www/vhosts/nodenogg.in/alpha.nodenogg.in;
location / {
try_files $uri $uri/ /index.html;
}
location /microcosm {
alias /var/www/vhosts/nodenogg.in/alpha.nodenogg.in;
try_files \$uri /microcosm/index.html;
}
}
import Vue from 'vue' import Vue from 'vue'
import VueRouter from 'vue-router' import VueRouter from 'vue-router'
import Home from '../views/Home.vue' import Home from '../views/Home.vue'
import NotFound from '../views/NotFound.vue'
Vue.use(VueRouter) Vue.use(VueRouter)
...@@ -27,15 +26,21 @@ const routes = [ ...@@ -27,15 +26,21 @@ const routes = [
}, },
{ {
// catches 404 errors
path: '*', path: '*',
name: 'NotFound', name: '404',
component: NotFound component: () =>
import(
/* webpackChunkName: "NotFoundComponent" */ '../views/NotFound.vue'
)
} }
] ]
const router = new VueRouter({ const router = new VueRouter({
mode: 'history', mode: 'history',
base: process.env.VUE_APP_HTTP + '://' + process.env.VUE_APP_URL + '/', //base: 'https://alpha.nodenogg.in/',
//base: process.env.VUE_APP_HTTP + '://' + process.env.VUE_APP_URL + '',
//base: process.env.VUE_APP_HTTP,
routes routes
}) })
......
<template> <template>
<div> <div>
<p>A real 404</p> <h1>This is a Custom 404</h1>
<p>Delightful one coming soon</p>
</div> </div>
</template> </template>
...@@ -8,5 +9,4 @@ ...@@ -8,5 +9,4 @@
export default {} export default {}
</script> </script>
<style lang="css" scoped> <style lang="css" scoped></style>
</style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment