Skip to content

Commit

Permalink
fix(docker): fix Strapi making calls to localhost (#665)
Browse files Browse the repository at this point in the history
* fix(docker): add STRAPI_URL to Dockerfile

* fix: change STRAPI_URL to PUBLIC_URL
  • Loading branch information
jakubwiczkowski committed Aug 28, 2023
1 parent 4472497 commit 0be5c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn ins

# Build the project
COPY --from=builder /app/out/full/ .
RUN yarn build --filter=api
RUN PUBLIC_URL=$NEXT_PUBLIC_API_URL yarn build --filter=api

FROM base AS runner

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"wait-on": "^7.0.1"
},
"lint-staged": {
"*": [
"apps/*": [
"prettier --ignore-unknown --write"
],
"*.{js,jsx,ts,tsx,graphql,gql}": "eslint --ext .js,.jsx,.ts,.tsx,.graphql,.gql "
Expand Down

0 comments on commit 0be5c6d

Please sign in to comment.