remove vite from prod

This commit is contained in:
fred 2025-08-06 18:23:36 +00:00
parent e9eea69545
commit 27ac9cd92d
3 changed files with 3 additions and 5 deletions

View file

@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite --host 0.0.0.0 --port 80",
"production": "tsc -b && vite build && vite --host 0.0.0.0 --port 80",
"demo": "tsc -b && vite build && vite --host 0.0.0.0 --port 80",
"production": "tsc -b && vite build",
"demo": "tsc -b && vite build",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"

View file

@ -5,7 +5,7 @@ function About() {
<div>
<h2 className="text-xl">This app uses the following components:</h2>
<h2 className="mt-4 font-bold text-xl">Frontend:</h2>
<ul><li>React</li><li>TypeScript</li><li>Vite</li></ul>
<ul><li>React</li><li>TypeScript</li></ul>
<h2 className="mt-4 font-bold text-xl">Backend:</h2>
<ul><li>Node.js & Express</li><li>PostgreSQL</li></ul>
<h2 className="mt-4 font-bold text-xl">Containerization:</h2>

View file

@ -5,7 +5,5 @@ import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
server: {
hmr: false,
allowedHosts: ["recipe-prod.fredzernia.com", "recipe-demo.fredzernia.com"],
},
});