Loading capif_frontend/.env +4 −5 Original line number Diff line number Diff line NEXT_PUBLIC_API_BASE_URL="https://10.95.82.71:8085" NEXT_PUBLIC_GRAFANA_BASE_URL="http://10.95.82.71:3000" NEXT_PUBLIC_JWT_EXPIRATION=5m NEXT_PUBLIC_JWT_SECRET=dd5f3089-40c3-403d-af14-d0c228b05cb4 NEXT_PUBLIC_JWT_REFRESH_TOKEN_SECRET=7c4c1c50-3230-45bf-9eae-c9b2e401c767 NEXT_PUBLIC_API_BASE_URL="https://backoffice-be-capif.mobilesandbox.cloud/" NEXT_PUBLIC_GRAFANA_BASE_URL="http://10.95.82.71:3000" capif_frontend/.gitignore +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ yarn-debug.log* yarn-error.log* # Environments .env .venv env/ venv/ Loading capif_frontend/Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ COPY . . RUN yarn build # Expone el puerto 3000 (o el puerto que hayas configurado en tu aplicación Next.js) EXPOSE 4000 EXPOSE 3000 # Comando para iniciar la aplicación CMD ["yarn", "start"] capif_frontend/mocks/collections.jsondeleted 100644 → 0 +0 −21 Original line number Diff line number Diff line [ { "id": "base", "routes": ["add-headers:enabled", "get-users:success", "get-user:success"] }, { "id": "no-headers", "from": "base", "routes": ["add-headers:disabled"] }, { "id": "all-users", "from": "base", "routes": ["get-users:all", "get-user:id-3"] }, { "id": "user-real", "from": "no-headers", "routes": ["get-user:real"] } ] capif_frontend/mocks/routes/common.jsdeleted 100644 → 0 +0 −29 Original line number Diff line number Diff line // Use this file only as a guide for first steps using middleware variants. You can delete it when you have understood the concepts. // For a detailed explanation about using middlewares, visit: // https://mocks-server.org/docs/usage/variants/middlewares module.exports = [ { id: "add-headers", //route id url: "*", // url in express format method: ["GET", "POST", "PUT", "PATCH"], // HTTP methods variants: [ { id: "enabled", // variant id type: "middleware", // variant handler id options: { // Express middleware to execute middleware: (_req, res, next, core) => { res.set("x-mocks-server-example", "some-value"); core.logger.info("Custom header added by route variant middleware"); next(); }, }, }, { id: "disabled", // variant id disabled: true, }, ], }, ]; Loading
capif_frontend/.env +4 −5 Original line number Diff line number Diff line NEXT_PUBLIC_API_BASE_URL="https://10.95.82.71:8085" NEXT_PUBLIC_GRAFANA_BASE_URL="http://10.95.82.71:3000" NEXT_PUBLIC_JWT_EXPIRATION=5m NEXT_PUBLIC_JWT_SECRET=dd5f3089-40c3-403d-af14-d0c228b05cb4 NEXT_PUBLIC_JWT_REFRESH_TOKEN_SECRET=7c4c1c50-3230-45bf-9eae-c9b2e401c767 NEXT_PUBLIC_API_BASE_URL="https://backoffice-be-capif.mobilesandbox.cloud/" NEXT_PUBLIC_GRAFANA_BASE_URL="http://10.95.82.71:3000"
capif_frontend/.gitignore +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ yarn-debug.log* yarn-error.log* # Environments .env .venv env/ venv/ Loading
capif_frontend/Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ COPY . . RUN yarn build # Expone el puerto 3000 (o el puerto que hayas configurado en tu aplicación Next.js) EXPOSE 4000 EXPOSE 3000 # Comando para iniciar la aplicación CMD ["yarn", "start"]
capif_frontend/mocks/collections.jsondeleted 100644 → 0 +0 −21 Original line number Diff line number Diff line [ { "id": "base", "routes": ["add-headers:enabled", "get-users:success", "get-user:success"] }, { "id": "no-headers", "from": "base", "routes": ["add-headers:disabled"] }, { "id": "all-users", "from": "base", "routes": ["get-users:all", "get-user:id-3"] }, { "id": "user-real", "from": "no-headers", "routes": ["get-user:real"] } ]
capif_frontend/mocks/routes/common.jsdeleted 100644 → 0 +0 −29 Original line number Diff line number Diff line // Use this file only as a guide for first steps using middleware variants. You can delete it when you have understood the concepts. // For a detailed explanation about using middlewares, visit: // https://mocks-server.org/docs/usage/variants/middlewares module.exports = [ { id: "add-headers", //route id url: "*", // url in express format method: ["GET", "POST", "PUT", "PATCH"], // HTTP methods variants: [ { id: "enabled", // variant id type: "middleware", // variant handler id options: { // Express middleware to execute middleware: (_req, res, next, core) => { res.set("x-mocks-server-example", "some-value"); core.logger.info("Custom header added by route variant middleware"); next(); }, }, }, { id: "disabled", // variant id disabled: true, }, ], }, ];