mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-20 15:41:11 +00:00
Remove unused files
This commit is contained in:
parent
3aa111ae3a
commit
f2ac91bcdf
@ -1,19 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
const debug = require('debug')('nuxt:render')
|
||||
const { join } = require('path')
|
||||
const { getRoute, waitFor } = require('./utils')
|
||||
|
||||
function * render (req, res, next) {
|
||||
if (!this.renderer) {
|
||||
yield waitFor(1000)
|
||||
yield this.render(req, res, next)
|
||||
return
|
||||
}
|
||||
debug(`Start rendering ${req.url}...`)
|
||||
const route = getRoute(req.url)
|
||||
const path = join('pages', (route === '/' ? 'index' : route)).replace('.vue', '')
|
||||
debug(`Find ${path}.vue`)
|
||||
}
|
||||
|
||||
module.exports = render
|
@ -1,7 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
const debug = require('debug')('nuxt:render-route')
|
||||
|
||||
module.exports = function (url, context) {
|
||||
debug(`Rendering route ${url}`)
|
||||
}
|
Loading…
Reference in New Issue
Block a user