diff --git a/FrontendV2/nginx.conf b/FrontendV2/nginx.conf
index 4aa4fa8..cbb9122 100644
--- a/FrontendV2/nginx.conf
+++ b/FrontendV2/nginx.conf
@@ -9,6 +9,14 @@ server {
try_files $uri $uri/ /index.html;
}
+ location = /backend {
+ return 301 /backend/;
+ }
+
+ location /backend/ {
+ proxy_pass http://borrow_system-backend_v2:8004/;
+ }
+
location ~* \.(?:js|mjs|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
expires 1y;
access_log off;
diff --git a/FrontendV2/src/App.tsx b/FrontendV2/src/App.tsx
index 5c774c9..05c206c 100644
--- a/FrontendV2/src/App.tsx
+++ b/FrontendV2/src/App.tsx
@@ -16,7 +16,6 @@ import { Box, Flex } from "@chakra-ui/react";
import { Footer } from "./components/footer/Footer";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { API_BASE } from "@/config/api.config";
-import { NotFoundPage } from "./pages/NotFoundPage";
const queryClient = new QueryClient();
@@ -84,7 +83,6 @@ function App() {
} />
- } />
diff --git a/FrontendV2/src/pages/NotFoundPage.tsx b/FrontendV2/src/pages/NotFoundPage.tsx
deleted file mode 100644
index b3c36f6..0000000
--- a/FrontendV2/src/pages/NotFoundPage.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from "react";
-
-export const NotFoundPage = () => {
- return (
- <>
-
- >
- )
-};
diff --git a/docker-compose.yml b/docker-compose.yml
index 90ab08c..f89466c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -16,8 +16,6 @@ services:
backend_v2:
container_name: borrow_system-backend_v2
build: ./backendV2
- ports:
- - "8004:8004"
environment:
NODE_ENV: production
DB_HOST: mysql_v2