server loads all Pages on start as it was before

This commit is contained in:
tmshv committed 2019-10-15 00:43:33 +03:00
1 parent d1d0011cc9
commit f48f89ff1b
1 file changed
+2 -3
+2 -3
View File
@@ -18,9 +18,8 @@ app.prepare().then(async () => {
process.exit(1)
}
// const pages = await Page.find({})
// const pagesUrls = pages.map(x => x.url)
const pagesUrls = []
const pages = await Page.find({})
const pagesUrls = pages.map(x => x.url)
const server = new Koa()
server.use(async (ctx, next) => {