🐛 Fix frontend hijacking /docs in development (#6)
* 🐛 Fix frontend hijacking /docs in development * 🐛 Fix frontend Dockerfile copying Nginx config
This commit is contained in:

committed by
GitHub

parent
9c23d69f36
commit
151f7ed79b
@@ -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
|
||||
|
@@ -0,0 +1,9 @@
|
||||
location /api {
|
||||
return 404;
|
||||
}
|
||||
location /docs {
|
||||
return 404;
|
||||
}
|
||||
location /redoc {
|
||||
return 404;
|
||||
}
|
Reference in New Issue
Block a user