Skip to content

Commit ad8b1ee

Browse files
authored
sync with recent code changes (#37)
1 parent dab4a6f commit ad8b1ee

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pages/aws/config/custom_overrides.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ import type {
182182
APIGatewayProxyEventV2,
183183
APIGatewayProxyResultV2,
184184
} from "aws-lambda";
185-
import type { StreamCreator } from "@opennextjs/aws/http/openNextResponse.js";
186185
import { Writable } from "node:stream";
187186

188187
import { WarmerEvent, WarmerResponse } from "@opennextjs/aws/adapters/warmer-function.js";
188+
import type { StreamCreator } from "@opennextjs/aws/types/open-next.js";
189189
import type { WrapperHandler } from "@opennextjs/aws/types/overrides.js";
190190

191191
type AwsLambdaEvent =
@@ -248,9 +248,6 @@ const handler: WrapperHandler =
248248
},
249249
});
250250
},
251-
onFinish: () => {
252-
// Do nothing
253-
},
254251
};
255252

256253
const response = await handler(internalEvent, fakeStream);

pages/aws/config/overrides/converter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ If you want to better understand how to implement your own Converter, the easies
55
Couple of things to note :
66
- If you use a `StreamCreator` in your wrapper, you probably don't need to do anything in the `convertTo` function.
77
- If used for the default, the image optimization, or one of the splitted server the internal types will be `InternalEvent` and `InternalResult` respectively.
8-
- If used for the external middleware, the internal types will be `InternalEvent` and `InternalResult | MiddlewareOutputEvent` respectively.
8+
- If used for the external middleware, the internal types will be `InternalEvent` and `InternalResult | MiddlewareResult` respectively.
99
- For the other servers, look up their respective types in the codebase.

pages/aws/contribute/local_run.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import express from 'express'
6767
import proxy from 'express-http-proxy'
6868
import { fork } from 'child_process'
6969

70-
import type { StreamCreator } from "@opennextjs/aws/http/openNextResponse.js";
70+
import type { StreamCreator } from "@opennextjs/aws/types/open-next.js";
7171
import type { WrapperHandler } from "@opennextjs/aws/types/overrides.js";
7272

7373
const wrapper: WrapperHandler = async (handler, converter) => {

0 commit comments

Comments
 (0)