Merge pull request #215 from ets-cfuhrman-pfe/fuhrmanator/issue214
Some checks failed
CI/CD Pipeline for Backend / build_and_push_backend (push) Has been cancelled
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Has been cancelled
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Has been cancelled
Tests / tests (client) (push) Has been cancelled
Tests / tests (server) (push) Has been cancelled

add config info, type for react in the vite.config.ts file
This commit is contained in:
Christopher (Cris) Fuhrman 2025-01-29 11:37:56 -05:00 committed by GitHub
commit fd5db0559d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 140 additions and 78 deletions

210
client/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -55,7 +55,7 @@
"@types/react-latex": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"@vitejs/plugin-react-swc": "^3.7.2",
"eslint": "^9.18.0",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0-rc-206df66e-20240912",

View file

@ -3,6 +3,8 @@ import react from '@vitejs/plugin-react-swc';
import pluginChecker from 'vite-plugin-checker';
import EnvironmentPlugin from 'vite-plugin-environment';
console.log("⚡ Vite config is being loaded!");
// Filter out environment variables with invalid identifiers
const filteredEnv = Object.keys(process.env).reduce((acc, key) => {
// Only include environment variables with valid JavaScript identifiers
@ -27,13 +29,15 @@ export default defineConfig({
},
preview: {
port: 5173,
strictPort: true
strictPort: true,
allowedHosts: ['frontend', 'localhost'],
},
server: {
port: 5173,
strictPort: true,
host: true,
origin: "http://0.0.0.0:5173",
allowedHosts: ['frontend', 'localhost'],
},
build: {
sourcemap: true, // Enable source maps