Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions src/run/handlers/cache.cts
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
// if we don't get cacheControls, but we still get revalidate, it should mean we are before
// https://github.com/vercel/next.js/pull/76207
try {
const { normalizePagePath } = await import(
'next/dist/shared/lib/page-path/normalize-page-path.js'
)
const { normalizePagePath } =
await import('next/dist/shared/lib/page-path/normalize-page-path.js')

prerenderManifest.routes[key] = {
experimentalPPR: undefined,
Expand All @@ -248,9 +247,8 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
// depending on Next.js version - prerender manifest might not be mutable
// https://github.com/vercel/next.js/pull/64313
// if it's not mutable we will try to use SharedRevalidateTimings ( https://github.com/vercel/next.js/pull/64370) instead
const { SharedRevalidateTimings } = await import(
'next/dist/server/lib/incremental-cache/shared-revalidate-timings.js'
)
const { SharedRevalidateTimings } =
await import('next/dist/server/lib/incremental-cache/shared-revalidate-timings.js')
const sharedRevalidateTimings = new SharedRevalidateTimings(prerenderManifest)
sharedRevalidateTimings.set(key, revalidate)
}
Expand Down
28 changes: 13 additions & 15 deletions tests/fixtures/middleware-og/app/og.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ import { ImageResponse } from 'next/og'

export default function og() {
return new ImageResponse(
(
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Open Graph
</div>
),
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Open Graph
</div>,
)
}
28 changes: 13 additions & 15 deletions tests/fixtures/wasm-src/src/pages/api/og-wrong-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@ import { ImageResponse } from 'next-og-alias'

export default function () {
return new ImageResponse(
(
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>
),
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>,
)
}
28 changes: 13 additions & 15 deletions tests/fixtures/wasm-src/src/pages/api/og.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ export const config = {

export default function () {
return new ImageResponse(
(
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>
),
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>,
)
}
28 changes: 13 additions & 15 deletions tests/fixtures/wasm/pages/api/og-wrong-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@ import { ImageResponse } from 'next-og-alias'

export default function () {
return new ImageResponse(
(
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>
),
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>,
)
}
28 changes: 13 additions & 15 deletions tests/fixtures/wasm/pages/api/og.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ export const config = {

export default function () {
return new ImageResponse(
(
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>
),
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 128,
background: 'lavender',
}}
>
Hello!
</div>,
)
}
Loading