diff --git a/src/node/server.ts b/src/node/server.ts index 4eea0adb..bdaaa5ed 100644 --- a/src/node/server.ts +++ b/src/node/server.ts @@ -104,13 +104,17 @@ function createVitePressPlugin({ ctx.body = vueSrc debug(ctx.url, ctx.status) + const pageDataWithLinks = { + ...pageData, + ...getNextAndPrev(siteData.themeConfig.sidebar, ctx.path) + } await next() // make sure this is the main