Skip to content

Commit

Permalink
Merge pull request #214 from nerdstrike/fix_dev_mode
Browse files Browse the repository at this point in the history
Fix the way vite runs in dev mode so that browser tools work
  • Loading branch information
nerdstrike authored Jul 12, 2024
2 parents ddecaa6 + 05bfcc0 commit 120db86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ COPY ./vite.config.js /code/longue_vue/vite.config.js
COPY ./index.html /code/longue_vue/index.html
COPY ./.env /code/longue_vue/.env

CMD ["npm", "exec", "vite", "--", "--host", "--port", "80", "--base", "/ui/"]
CMD ["npm", "run", "dev", "--", "--host", "--port", "80", "--base", "/ui/"]
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"type": "module",
"scripts": {
"dev": "vite --port 3000",
"dev": "vite --port 80 --mode development",
"build": "vite build",
"preview": "vite preview --port 3000",
"preview": "vite preview --port 80",
"test": "vitest run",
"coverage": "vitest run --coverage",
"test:e2e:ci": "start-server-and-test preview http://localhost:3000/ 'cypress run --e2e'",
Expand Down

0 comments on commit 120db86

Please sign in to comment.