Files
ForumMobile/vite.config.ts
matiasc18 2082e0c7bc Signup/Login + styling adjustments
- Modified SearchBar styling
- Modified TopBar to display blank circle if the user has no networks (previously missing image icon)
- Refactored Login into AuthPage.js
- AuthPage contains a tab selector for switching between Signup and Login
- Both Login/Signup send the request and either receive an auth_token or an error message
- If auth_token, user will be logged in as usual, in both cases
- Signup validates user input before sending request
- Added /signup target in vite config file
2026-03-18 17:36:03 -04:00

47 lines
977 B
TypeScript

import { defineConfig } from 'vite';
export default defineConfig({
root: './src',
build: {
outDir: '../dist',
minify: false,
emptyOutDir: true,
sourcemap: true,
target: 'esnext' // modern version of browsers, allows top-level await
},
server: {
proxy: {
"/ws": {
target: "http://localhost:10002",
changeOrigin: true,
ws: true
},
"/login": {
target: "http://localhost:10002",
changeOrigin: true
},
"/signup": {
target: "http://localhost:10002",
changeOrigin: true
},
"/profile": {
target: "http://localhost:10002",
changeOrigin: true
},
"/api": {
target: "http://localhost:10002",
changeOrigin: true
},
"/db": {
target: "http://localhost:10002",
changeOrigin: true
}
},
host: true,
allowedHosts: ['sam.local'],
},
esbuild: {
keepNames: true
}
});