Configure for layer0 deployment

This commit is contained in:
Sam Carlton 2021-08-05 12:31:02 -05:00
parent f252322ccc
commit a8842fbb41
4 changed files with 32 additions and 0 deletions

11
routes.js Normal file
View file

@ -0,0 +1,11 @@
// This file was added by layer0 init.
// You should commit this file to source control.
const { Router } = require('@layer0/core/router')
const { nuxtRoutes } = require('@layer0/nuxt')
module.exports = new Router()
.match('/service-worker.js', ({ serviceWorker }) => {
serviceWorker('.nuxt/dist/client/service-worker.js')
})
.use(nuxtRoutes)