From 09eace41909ae8c33c05dcda307fb18f5cb13730 Mon Sep 17 00:00:00 2001 From: Leclercq Nathan Date: Sun, 2 Feb 2025 18:39:33 +0000 Subject: [PATCH] =?UTF-8?q?voil=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- Dockerfile | 4 ++-- package.json | 2 +- vite.config.mts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env b/.env index ae63214..28fee30 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_BOOK_API_URL=http://192.168.1.51:8000 \ No newline at end of file +VITE_BOOK_API_URL=http://192.168.1.14:9999 diff --git a/Dockerfile b/Dockerfile index 6d48e27..9a6935f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:lts-alpine -ARG api=http://192.168.1.51:8000 +ARG api=http://192.168.1.14:9999 # "https://app.bookfarm.spacesheep.ovh" ENV VITE_BOOK_API_URL=$api @@ -27,4 +27,4 @@ CMD [ "http-server", "dist" ] #sudo docker build -t book-farm/frontend . -#sudo docker run -it -p 8080:8080 --rm --name book-farm-frontend book-farm/frontend \ No newline at end of file +#sudo docker run -it -p 8080:8080 --rm --name book-farm-frontend book-farm/frontend diff --git a/package.json b/package.json index 4319663..ef28044 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "module", "version": "0.0.0", "scripts": { - "dev": "vite", + "dev": "vite --host 0.0.0.0", "build": "run-p \"build-only {@}\" --", "preview": "vite preview", "build-only": "vite build", diff --git a/vite.config.mts b/vite.config.mts index e099c88..4a41b62 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -49,7 +49,7 @@ export default defineConfig({ ], }, server: { - port:3000, + port:8080, }, css: { preprocessorOptions: {