Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit a6325c2

Browse files
authored
fix(nextjs-component): allow custom cache behavior for _next/image* (#1046)
1 parent 0ee1394 commit a6325c2

File tree

1 file changed

+1
-0
lines changed
  • packages/serverless-components/nextjs-component/src

1 file changed

+1
-0
lines changed

packages/serverless-components/nextjs-component/src/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class NextjsComponent extends Component {
8585
stillToMatch.delete(this.pathPattern("static/*", routesManifest));
8686
stillToMatch.delete(this.pathPattern("_next/static/*", routesManifest));
8787
stillToMatch.delete(this.pathPattern("_next/data/*", routesManifest));
88+
stillToMatch.delete(this.pathPattern("_next/image*", routesManifest));
8889

8990
// check for other api like paths
9091
for (const path of stillToMatch) {

0 commit comments

Comments
 (0)