feat: add manual feedback AI summaries and secure leaderboard scoring
This commit is contained in:
1 parent
34a3a88376
commit
6bad96ca03
37 files changed
+1640
-77
No files matched your search
@@ -1,11 +1,11 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
// Dev server proxies /auth, /rest, /realtime, /storage to the local Supabase
|
||||
// stack so the app can use relative URLs (works in Docker + localhost).
|
||||
const SUPABASE_TARGET = 'http://127.0.0.1:54321';
|
||||
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ mode }) => ({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: true,
|
||||
@@ -20,10 +20,10 @@ export default defineConfig({
|
||||
// Strip the /sidecar prefix so /sidecar/run -> http://127.0.0.1:3002/run
|
||||
// (mirrors the nginx `location /sidecar/ { proxy_pass .../; }` rewrite).
|
||||
'/sidecar': {
|
||||
target: 'http://127.0.0.1:3002',
|
||||
target: loadEnv(mode, '.', 'SIDECAR_').SIDECAR_TARGET || 'http://127.0.0.1:3002',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/sidecar/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}));
|
||||
Reference in new issue
Block a user