Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
🐛 Fix frontend hijacking /docs in development (#14)
Browse files Browse the repository at this point in the history
* 🐛 Fix frontend hijacking /docs in development

* 🐛 Fix frontend Dockerfile copying Nginx config
  • Loading branch information
tiangolo authored Apr 11, 2019
1 parent 93a9bea commit 9642b11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions {{cookiecutter.project_slug}}/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ FROM nginx:1.15
COPY --from=build-stage /app/dist/ /usr/share/nginx/html

COPY --from=build-stage /nginx.conf /etc/nginx/conf.d/default.conf
COPY ./nginx-backend-not-found.conf /etc/nginx/extra-conf.d/backend-not-found.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
location /api {
return 404;
}
location /docs {
return 404;
}
location /redoc {
return 404;
}

0 comments on commit 9642b11

Please sign in to comment.