This commit is contained in:
Nathan Leclercq 2025-02-02 18:39:33 +00:00
parent 0ce3ad0718
commit 09eace4190
4 changed files with 5 additions and 5 deletions

2
.env
View File

@ -1 +1 @@
VITE_BOOK_API_URL=http://192.168.1.51:8000
VITE_BOOK_API_URL=http://192.168.1.14:9999

View File

@ -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
#sudo docker run -it -p 8080:8080 --rm --name book-farm-frontend book-farm/frontend

View File

@ -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",

View File

@ -49,7 +49,7 @@ export default defineConfig({
],
},
server: {
port:3000,
port:8080,
},
css: {
preprocessorOptions: {