diff --git a/Dockerfile b/Dockerfile index 409f464..a8f2237 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM nginx:latest COPY dist /usr/share/nginx/html +COPY nginx.conf /etc/nginx/nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..889dff5 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,15 @@ +worker_processes 4; + +events { worker_connections 1024; } + +http { + server { + listen 80; + root /usr/share/nginx/html; + include /etc/nginx/mime.types; + + location / { + try_files $uri $uri/ /index.html; + } + } +} diff --git a/src/App.vue b/src/App.vue index cd6a6f1..5503121 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,7 +11,8 @@ import { MathPage } from './support/page' diff --git a/src/components/Scratch.vue b/src/components/Scratch.vue new file mode 100644 index 0000000..9db4e0f --- /dev/null +++ b/src/components/Scratch.vue @@ -0,0 +1,7 @@ + + + diff --git a/src/router.ts b/src/router.ts index 02e5545..e6d6895 100644 --- a/src/router.ts +++ b/src/router.ts @@ -7,6 +7,11 @@ const routes = [ name: 'Home', component: Home, }, + { + path: '/scratch', + name: 'Scratch', + component: () => import(/* webpackChunkName: "scratch" */ './components/Scratch.vue'), + }, ] const router = createRouter({