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
7 changes: 7 additions & 0 deletions .changeset/stale-walls-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@opennextjs/aws": patch
---

fix: tagCache in initializationFunction

Add correct typing to tagCache in initializationFunction and also adds it to the `overrides` in `compileTagCacheProvider` function.
1 change: 1 addition & 0 deletions packages/open-next/src/build/compileTagCacheProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export async function compileTagCacheProvider(
overrides: {
converter: overrides?.converter ?? "dummy",
wrapper: overrides?.wrapper,
tagCache: options.config.initializationFunction?.tagCache,
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/open-next/src/types/open-next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export interface OpenNextConfig {
* Supports only node runtime
*/
initializationFunction?: DefaultFunctionOptions & {
tagCache?: "dynamodb" | LazyLoadedOverride<TagCache>;
tagCache?: IncludedTagCache | LazyLoadedOverride<TagCache>;
};

/**
Expand Down
Loading