mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
fix: changelog
This commit is contained in:
parent
46ea29f91d
commit
0a269b63e5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ export const prerender = true
|
||||||
// src/middleware.js
|
// src/middleware.js
|
||||||
|
|
||||||
export const onRequest = (ctx, next) => {
|
export const onRequest = (ctx, next) => {
|
||||||
console.log(ctx.prerender) // it will log true
|
console.log(ctx.isPrerendered) // it will log true
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue