Something went wrong. Try again.
A Social Deduction / Deception Game
Something went wrong. Try again.
deception.network vite.config.ts
897 B · 27 lines
TypeScript
at main
12345678910111213141516171819202122232425262728import { defineConfig } from 'vite'import react from '@vitejs/plugin-react'import tailwindcss from '@tailwindcss/vite'
export default defineConfig({ plugins: [react(), tailwindcss()], root: 'client', build: { outDir: '../dist/client', emptyOutDir: true, }, server: { host: '127.0.0.1', port: 5173, proxy: { '/api': 'http://localhost:3000', // XRPC queries (e.g. town.deception.listMaps) are served by the same backend. '/xrpc': 'http://localhost:3000', // OAuth runs through the proxy too, so the browser stays on one origin and the session // cookie set by /oauth/callback is sent on every later /api and /ws request. '/oauth': 'http://localhost:3000', '/client-metadata.json': 'http://localhost:3000', '/jwks.json': 'http://localhost:3000', '/ws': { target: 'ws://localhost:3000', ws: true }, }, },})