From ab08fcfc4799c507619d7012c9471113b08e4a65 Mon Sep 17 00:00:00 2001 From: Bayu Prasetya Utomo <108232231+BayuPrasetyaUtomo@users.noreply.github.com> Date: Sun, 3 Nov 2024 23:50:42 +0700 Subject: [PATCH] Update aws.mdx - Add build settings for deployment on AWS amplify using bun --- src/content/docs/en/guides/deploy/aws.mdx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/content/docs/en/guides/deploy/aws.mdx b/src/content/docs/en/guides/deploy/aws.mdx index 7bc92f373c89f..7565b03a32a8a 100644 --- a/src/content/docs/en/guides/deploy/aws.mdx +++ b/src/content/docs/en/guides/deploy/aws.mdx @@ -84,6 +84,29 @@ AWS Amplify is a set of purpose-built tools and features that lets frontend web paths: - node_modules/**/* ``` + + + ```yaml + version: 1 + frontend: + phases: + preBuild: + commands: + - curl -fsSL https://bun.sh/install | bash + - export BUN_INSTALL="$HOME/.bun" + - export PATH="$BUN_INSTALL/bin:$PATH" + - bun install + build: + commands: + - bun run build + artifacts: + baseDirectory: /dist + files: + - "**/*" + cache: + paths: + - node_modules/**/*' + ```