diff --git a/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx b/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx index 20974c6780b..e5bf50312cc 100644 --- a/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx +++ b/src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx @@ -113,9 +113,9 @@ import { fileURLToPath } from "node:url"; import { defineFunction } from "@aws-amplify/backend"; import { DockerImage, Duration } from "aws-cdk-lib"; import { Code, Function, Runtime } from "aws-cdk-lib/aws-lambda"; -import { defineFunction } from "@aws-amplify/backend"; -import { DockerImage, Duration } from "aws-cdk-lib"; -import { Code, Function, Runtime } from "aws-cdk-lib/aws-lambda"; + +const functionDir = path.dirname(fileURLToPath(import.meta.url)); + export const sayHelloFunctionHandler = defineFunction( (scope) => new Function(scope, "say-hello", {