Skip to content

Commit 151f7ed

Browse files
authored
🐛 Fix frontend hijacking /docs in development (#6)
* 🐛 Fix frontend hijacking /docs in development * 🐛 Fix frontend Dockerfile copying Nginx config
1 parent 9c23d69 commit 151f7ed

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

{{cookiecutter.project_slug}}/frontend/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ FROM nginx:1.15
2525
COPY --from=build-stage /app/dist/ /usr/share/nginx/html
2626

2727
COPY --from=build-stage /nginx.conf /etc/nginx/conf.d/default.conf
28+
COPY ./nginx-backend-not-found.conf /etc/nginx/extra-conf.d/backend-not-found.conf
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
location /api {
2+
return 404;
3+
}
4+
location /docs {
5+
return 404;
6+
}
7+
location /redoc {
8+
return 404;
9+
}

0 commit comments

Comments
 (0)