Add Matches page, OkCupid integration, and major UI/feature updates
- New Matches page with match scoring system - New OkCupid page and API integration - Enhanced Likes page with scanner improvements and enrichment - Updated Settings, Discover, Messages, and Chat pages - Improved auth, GraphQL client, and Stream Chat setup - Added new backend endpoints (matchScoring.js) - Removed old Proxyman capture logs - Updated nginx config and Vite proxy settings Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,20 @@ export default defineConfig({
|
||||
// Access http://localhost:3000 directly for HMR during development
|
||||
hmr: false,
|
||||
proxy: {
|
||||
'/api/okcupid': {
|
||||
target: 'https://e2p-okapi.api.okcupid.com',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api\/okcupid/, ''),
|
||||
secure: false,
|
||||
configure: (proxy) => {
|
||||
proxy.on('proxyReq', (proxyReq) => {
|
||||
proxyReq.removeHeader('origin');
|
||||
proxyReq.removeHeader('referer');
|
||||
proxyReq.setHeader('User-Agent', 'OkCupid/111.1.0 iOS/26.2.1');
|
||||
proxyReq.setHeader('x-okcupid-locale', 'en');
|
||||
});
|
||||
},
|
||||
},
|
||||
'/api/graphql': {
|
||||
target: 'https://core.api.fldcore.com',
|
||||
changeOrigin: true,
|
||||
@@ -70,16 +84,20 @@ export default defineConfig({
|
||||
proxyReq.removeHeader('sec-ch-ua-platform');
|
||||
// Set mobile app headers to match iOS app
|
||||
// APP_VERSION: keep in sync with src/config/constants.ts APP_VERSION
|
||||
proxyReq.setHeader('User-Agent', 'Feeld/8.8.3 (com.3nder.ios; build:1; iOS 18.6.2) Alamofire/5.9.1');
|
||||
proxyReq.setHeader('User-Agent', 'Feeld/8.11.0 (com.3nder.ios; build:1; iOS 26.2.1) Alamofire/5.9.1');
|
||||
proxyReq.setHeader('Accept', '*/*');
|
||||
proxyReq.setHeader('Accept-Language', 'en-US,en;q=0.9');
|
||||
proxyReq.setHeader('x-app-version', '8.8.3');
|
||||
proxyReq.setHeader('x-app-version', '8.11.0');
|
||||
proxyReq.setHeader('x-device-os', 'ios');
|
||||
proxyReq.setHeader('x-os-version', '18.6.2');
|
||||
proxyReq.setHeader('x-os-version', '26.2.1');
|
||||
});
|
||||
},
|
||||
},
|
||||
// Local backend endpoints (must be last to not override specific proxies above)
|
||||
'/api/matches': {
|
||||
target: 'http://localhost:3001',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/who-liked-you': {
|
||||
target: 'http://localhost:3001',
|
||||
changeOrigin: true,
|
||||
|
||||
Reference in New Issue
Block a user