Skip to content

Commit

Permalink
fix: cleanup custom functions docs (#8197)
Browse files Browse the repository at this point in the history
* fix: cleanup custom functions docs

removed duplicated lines

* Adds path reference for local function bundling

Ensures direct file location support for consistent build outputs
  • Loading branch information
pavinthan authored Jan 14, 2025
1 parent 1ffd6b7 commit 8f04b0f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit 8f04b0f

Please sign in to comment.