diff --git a/app/api/src/docker/aws-emulator.js b/app/api/src/docker/aws-emulator.js index d237030..19f0275 100644 --- a/app/api/src/docker/aws-emulator.js +++ b/app/api/src/docker/aws-emulator.js @@ -26,7 +26,7 @@ app.post('/cadquery/stl', async (req, res) => { console.log('making post request to 5060') try { const { data } = await axios.post(invocationURL(5060), { - body: req.body, + body: JSON.stringify(req.body), }) res.status(data.statusCode) res.send(data.body) diff --git a/app/api/src/docker/cadquery/Dockerfile b/app/api/src/docker/cadquery/Dockerfile index c1ebd13..4e91f91 100644 --- a/app/api/src/docker/cadquery/Dockerfile +++ b/app/api/src/docker/cadquery/Dockerfile @@ -3,7 +3,7 @@ FROM public.ecr.aws/lts/ubuntu:20.04_stable ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update -qq -RUN apt-get -y -qq install software-properties-common dirmngr apt-transport-https lsb-release ca-certificates xvfb libglew2.1 +RUN apt-get -y -qq install software-properties-common dirmngr apt-transport-https lsb-release ca-certificates xvfb RUN apt-get update -qq RUN apt-get install -y wget @@ -36,6 +36,7 @@ RUN npm install # Get the distribution copy of cq-cli +RUN apt-get install -y libglew2.1 RUN wget https://github.com/CadQuery/cq-cli/releases/download/v2.2-beta.1/cq-cli-Linux-x86_64.zip # Comment the entry above out and uncomment the one below to revert to the stable release # RUN wget https://github.com/CadQuery/cq-cli/releases/download/v2.1.0/cq-cli-Linux-x86_64.zip diff --git a/app/web/src/helpers/cadPackages/common.js b/app/web/src/helpers/cadPackages/common.js index 00de304..bdb1af5 100644 --- a/app/web/src/helpers/cadPackages/common.js +++ b/app/web/src/helpers/cadPackages/common.js @@ -2,7 +2,7 @@ import { STLLoader } from 'three/examples/jsm/loaders/STLLoader' export const lambdaBaseURL = process.env.CAD_LAMBDA_BASE_URL || - 'https://oxt2p7ddgj.execute-api.us-east-1.amazonaws.com/prod' + 'https://2inlbple1b.execute-api.us-east-1.amazonaws.com/prod2' export const stlToGeometry = (url) => new Promise((resolve, reject) => {