Skip to content

Commit

Permalink
Merge pull request #125 from CS3219-AY2425S1/cloud-fix
Browse files Browse the repository at this point in the history
rebuild fe
  • Loading branch information
simbayippy authored Nov 3, 2024
2 parents b54f36d + 35b9c92 commit 2e91c7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ jobs:
env:
NEXT_PUBLIC_API_GATEWAY_URL: ${{ secrets.NEXT_PUBLIC_API_GATEWAY_URL }}
NEXT_PUBLIC_GITHUB_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GITHUB_CLIENT_ID }}
NEXT_PUBLIC_SOCK_SERVER_URL: ${{ secrets.NEXT_PUBLIC_SOCK_SERVER_URL }}
run: |
gcloud builds submit --config cloudbuilds/fe.yaml \
--substitutions _NEXT_PUBLIC_API_GATEWAY_URL="$NEXT_PUBLIC_API_GATEWAY_URL",_NEXT_PUBLIC_GITHUB_CLIENT_ID="$NEXT_PUBLIC_GITHUB_CLIENT_ID"
--substitutions _NEXT_PUBLIC_API_GATEWAY_URL="$NEXT_PUBLIC_API_GATEWAY_URL",_NEXT_PUBLIC_GITHUB_CLIENT_ID="$NEXT_PUBLIC_GITHUB_CLIENT_ID",_NEXT_PUBLIC_SOCK_SERVER_URL="$NEXT_PUBLIC_SOCK_SERVER_URL"
deploy-api-gateway:
needs: check-changes
Expand Down
2 changes: 2 additions & 0 deletions peerprep-fe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ ENV PORT=3000
# Accept build argument
ARG NEXT_PUBLIC_API_GATEWAY_URL
ARG NEXT_PUBLIC_GITHUB_CLIENT_ID
ARG NEXT_PUBLIC_SOCK_SERVER_URL

# Set environment variable
ENV NEXT_PUBLIC_API_GATEWAY_URL=$NEXT_PUBLIC_API_GATEWAY_URL
ENV NEXT_PUBLIC_GITHUB_CLIENT_ID=$NEXT_PUBLIC_GITHUB_CLIENT_ID
ENV NEXT_PUBLIC_SOCK_SERVER_URL=$NEXT_PUBLIC_SOCK_SERVER_URL

COPY . .
RUN pnpm build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const CollaborationEditor = ({
const states = providerRef.current?.awareness.getStates();
if (states) {
const newClients = new Map<number, ConnectedClient>();
// Build new clients map
// Build new clients map.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
states.forEach((value: { [x: string]: any }) => {
const state = value as AwarenessState;
Expand Down

0 comments on commit 2e91c7a

Please sign in to comment.