server loads all Pages on start as it was before
This commit is contained in:
1 parent
d1d0011cc9
commit
f48f89ff1b
1 file changed
+2
-3
+2
-3
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user