From ea51d7d9a608227938999c1839e7583945bde708 Mon Sep 17 00:00:00 2001 From: Logan Davidson Date: Fri, 3 Nov 2023 17:27:57 +0000 Subject: [PATCH 1/4] Move the Amplify config into version control Move the Amplify configuration file into version control, rather than having it only in the AWS management console. For now it doesn't use node 18.17.1, but rather the default version, so it will fail to build - but it's still progress. --- frontend/amplify.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 frontend/amplify.yml diff --git a/frontend/amplify.yml b/frontend/amplify.yml new file mode 100644 index 00000000..d0a4bdd9 --- /dev/null +++ b/frontend/amplify.yml @@ -0,0 +1,17 @@ +version: 1 +applications: + - frontend: + phases: + preBuild: + commands: + - npm ci + build: + commands: + - npm run build + artifacts: + baseDirectory: .next + files: + - '**/*' + cache: + paths: + - node_modules/**/* \ No newline at end of file From 28b1f613705ae0ff7b503dd2626915b15410db1e Mon Sep 17 00:00:00 2001 From: Logan Davidson Date: Fri, 3 Nov 2023 17:31:19 +0000 Subject: [PATCH 2/4] Make frontend CI workflow use correct node version Ensure that the frontend CI workflow uses the correct node version. --- .github/workflows/ci_frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_frontend.yml b/.github/workflows/ci_frontend.yml index c3ab8d30..928e0192 100644 --- a/.github/workflows/ci_frontend.yml +++ b/.github/workflows/ci_frontend.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: '18' + node-version: '18.17.1' - name: Cache dependencies uses: actions/cache@v2 From af47a9aaabaad758e540de51f1c79016df7866af Mon Sep 17 00:00:00 2001 From: Logan Davidson Date: Fri, 3 Nov 2023 17:37:05 +0000 Subject: [PATCH 3/4] Move amplify config to root Move the amplify configuration file into the root because apparently Amplify can't detect configurations in other folders - weird but looks like my hands are tied. --- frontend/amplify.yml => amplify.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename frontend/amplify.yml => amplify.yml (84%) diff --git a/frontend/amplify.yml b/amplify.yml similarity index 84% rename from frontend/amplify.yml rename to amplify.yml index d0a4bdd9..f4599f31 100644 --- a/frontend/amplify.yml +++ b/amplify.yml @@ -14,4 +14,5 @@ applications: - '**/*' cache: paths: - - node_modules/**/* \ No newline at end of file + - node_modules/**/* + appRoot: frontend From f4f138b97aa6ddf664c547e184200d8fa9f7f57f Mon Sep 17 00:00:00 2001 From: Logan Davidson Date: Fri, 3 Nov 2023 17:39:32 +0000 Subject: [PATCH 4/4] Update amplify.yml --- amplify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amplify.yml b/amplify.yml index f4599f31..e8cd9a0d 100644 --- a/amplify.yml +++ b/amplify.yml @@ -15,4 +15,4 @@ applications: cache: paths: - node_modules/**/* - appRoot: frontend + appRoot: frontend