Skip to content

Commit 8f04b0f

Browse files
authored
fix: cleanup custom functions docs (#8197)
* fix: cleanup custom functions docs removed duplicated lines * Adds path reference for local function bundling Ensures direct file location support for consistent build outputs
1 parent 1ffd6b7 commit 8f04b0f

File tree

1 file changed

+3
-3
lines changed
  • src/pages/[platform]/build-a-backend/functions/custom-functions

1 file changed

+3
-3
lines changed

src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ import { fileURLToPath } from "node:url";
113113
import { defineFunction } from "@aws-amplify/backend";
114114
import { DockerImage, Duration } from "aws-cdk-lib";
115115
import { Code, Function, Runtime } from "aws-cdk-lib/aws-lambda";
116-
import { defineFunction } from "@aws-amplify/backend";
117-
import { DockerImage, Duration } from "aws-cdk-lib";
118-
import { Code, Function, Runtime } from "aws-cdk-lib/aws-lambda";
116+
117+
const functionDir = path.dirname(fileURLToPath(import.meta.url));
118+
119119
export const sayHelloFunctionHandler = defineFunction(
120120
(scope) =>
121121
new Function(scope, "say-hello", {

0 commit comments

Comments
 (0)