- After fetching join code in EnterCode(), it sets networkId attribute on "signup-" (Signup.js)
- Signup.js then includes the attribute in the call body
- Modified all calls to /signout, /profile, /login, /signup to be prefixed by '/auth'
- Added '/auth' to vite config file
- Modified final "else if" statement in .attr in quill.js to return `this.getAttribute(arg1)` instead of `this.getAttribute("")`
47 lines
987 B
TypeScript
47 lines
987 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
|
|
},
|
|
"/profile/upload-image": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/api": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/db": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/apps": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/auth": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
}
|
|
},
|
|
host: true,
|
|
allowedHosts: ['sam.local'],
|
|
},
|
|
esbuild: {
|
|
keepNames: true
|
|
}
|
|
});
|