diff --git a/apps/front/package-lock.json b/apps/front/package-lock.json index 4d22155..cf4d432 100644 --- a/apps/front/package-lock.json +++ b/apps/front/package-lock.json @@ -19,6 +19,7 @@ }, "devDependencies": { "@cher-ami/mfs": "^0.2.0", + "@eggjs/ip": "^2.0.2", "@types/events": "^3.0.3", "@types/node": "^22.10.5", "@types/react": "^19.0.6", @@ -31,7 +32,6 @@ "cross-env": "^7.0.3", "express": "^4.21.2", "husky": "^9.1.7", - "ip": "^2.0.1", "portfinder-sync": "^0.0.2", "rollup-plugin-visualizer": "^5.14.0", "sass": "^1.83.1", @@ -1603,6 +1603,16 @@ "integrity": "sha512-4FE2ais6TduClhDpOaBCSbwPyJz4iV8za1MDCFKfQ3gU4r3jyQJHiNinjKMvMTwNvytdfM1+NF4xGT4uBdEwZA==", "license": "MIT" }, + "node_modules/@eggjs/ip": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@eggjs/ip/-/ip-2.0.2.tgz", + "integrity": "sha512-UdnZ+fMwpdV2ybpNxYk9zI0rzd+GQuGv1f2QFJLJ0mRBBrO+Oan3W+/CQiQ+d5n6r+3pHZsMti2GU8m7YIWpnA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.0.0" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.24.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz", @@ -4724,13 +4734,6 @@ "dev": true, "license": "ISC" }, - "node_modules/ip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", - "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==", - "dev": true, - "license": "MIT" - }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", diff --git a/apps/front/package.json b/apps/front/package.json index 7d7c1e9..2f51341 100644 --- a/apps/front/package.json +++ b/apps/front/package.json @@ -31,6 +31,7 @@ }, "devDependencies": { "@cher-ami/mfs": "^0.2.0", + "@eggjs/ip": "^2.0.2", "@types/events": "^3.0.3", "@types/node": "^22.10.5", "@types/react": "^19.0.6", @@ -43,7 +44,6 @@ "cross-env": "^7.0.3", "express": "^4.21.2", "husky": "^9.1.7", - "ip": "^2.0.1", "portfinder-sync": "^0.0.2", "rollup-plugin-visualizer": "^5.14.0", "sass": "^1.83.1", diff --git a/apps/front/vite.config.ts b/apps/front/vite.config.ts index 75eec7f..a63c22a 100644 --- a/apps/front/vite.config.ts +++ b/apps/front/vite.config.ts @@ -11,7 +11,7 @@ import buildDotenvPlugin from "./config/vite-plugins/vite-plugin-build-dotenv" import buildHtaccessPlugin from "./config/vite-plugins/vite-plugin-build-htaccess" import { viteChersiteCustomLogger } from "./config/vite-plugins/vite-chersite-custom-logger" import legacy from "@vitejs/plugin-legacy" -import ip from "ip" +import ip from "@eggjs/ip" import portFinderSync from "portfinder-sync" const log = debug("config:vite.config")