From 6e924739cc7c904af84dd843f3b6f3deab3a9e79 Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Tue, 30 May 2023 14:36:00 -0400 Subject: [PATCH 1/2] use firebase-tools@12.1.0 because of next.js deploy bug --- .github/workflows/firebase-deploy-test.yml | 2 +- .github/workflows/firebase-deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-deploy-test.yml b/.github/workflows/firebase-deploy-test.yml index 7dcb351..c35da6d 100644 --- a/.github/workflows/firebase-deploy-test.yml +++ b/.github/workflows/firebase-deploy-test.yml @@ -28,7 +28,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" - name: Install firebase tools - run: npm install -g firebase-tools + run: npm install -g firebase-tools@12.1.0 - name: Enable firebase webframeworks run: firebase experiments:enable webframeworks - run: npm ci diff --git a/.github/workflows/firebase-deploy.yml b/.github/workflows/firebase-deploy.yml index 084483b..3d3607e 100644 --- a/.github/workflows/firebase-deploy.yml +++ b/.github/workflows/firebase-deploy.yml @@ -29,7 +29,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" - name: Install firebase tools - run: npm install -g firebase-tools + run: npm install -g firebase-tools@12.1.0 - name: Enable firebase webframeworks run: firebase experiments:enable webframeworks - run: npm ci From cff4e79af8077f1ef5fb6c85147e63f32d6c2df0 Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Tue, 30 May 2023 14:51:43 -0400 Subject: [PATCH 2/2] fix GET -> POST --- pages/api-docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api-docs.js b/pages/api-docs.js index 87dc8ab..8e6272f 100644 --- a/pages/api-docs.js +++ b/pages/api-docs.js @@ -102,7 +102,7 @@ export default function ApiDocs() { Get condition assignment - GET /api/condition + POST /api/condition Get the next condition assignment in an experiment. The condition is a numerical value from 0 to n-1, where n