Development discussions around Shopify APIs
I’m deploying an embedded Shopify Node/React app on Google Cloud Run, with a Docker container. The app builds fine, and I can install it in my test store and it loads initially, but I then get an AppBridge error:
u {name: 'AppBridgeError', message: 'APP::ERROR::INVALID_CONFIG: apiKey must be provided', action: undefined, type: 'APP::ERROR::INVALID_CONFIG', stack: 'AppBridgeError: APP::ERROR::INVALID_CONFIG: apiKey must be provided'}
The api key, secret, host and scopes are all declared as environment variables in the Cloud Run Variables & Secrets, with api key/secret getting pulled in from GCP Secret Manager. I can confirm that the key is there, because the value is returned when I console.log it from server.js and next.config.js, but regardless, I’m still getting this error.
I tried just deploying the standard Shopify Node/React app (using shopify node create) in the same way, with same results.Any ideas on how I can resolve this? Do I need to pull the env variables in earlier, like during the docker container build?
I tried just deploying the standard Shopify Node/React app (created w/ shopify node create) in the same way, with same results.
Any ideas on how I can resolve this? Do I need to pull the env variables in earlier, like during the Docker build?
Dockerfile code is:
FROM node:16.10
WORKDIR /app
COPY package.json /app
RUN npm install --production --legacy-peer-deps
COPY . /app
RUN npm run build
CMD npm run start
EXPOSE 8081
User | RANK |
---|---|
56 | |
11 | |
7 | |
5 | |
5 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023