From f3d13f3389c26d0d34c9a54f3b348ad0afd8f3d2 Mon Sep 17 00:00:00 2001 From: darren Date: Fri, 14 Nov 2025 21:38:19 +0800 Subject: [PATCH] #feature: Compatible with aw amplify paas deployment --- amplify.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 amplify.yml diff --git a/amplify.yml b/amplify.yml new file mode 100644 index 0000000..3f7bbc0 --- /dev/null +++ b/amplify.yml @@ -0,0 +1,23 @@ +version: 1 +frontend: + phases: + preBuild: + commands: + # set up pnpm + - npm install -g pnpm@10.6.4 + # install project dependencies + - pnpm install --frozen-lockfile + build: + commands: + # build Next.js application + - pnpm run build + artifacts: + # Next.js 15 output directory + baseDirectory: .next + files: + - '**/*' + cache: + paths: + # cache dependencies and build artifacts to speed up subsequent builds + - node_modules/**/* + - .next/cache/**/*hi \ No newline at end of file