惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Shifting from Mobile to Web: How I Built a 3-Pane Desktop...
jxlee007 · 2026-06-01 · via DEV Community

jxlee007


When building full-stack applications, we often get boxed into choosing a platform early. But what happens when your native mobile app needs a desktop-grade web version with a multi-pane layout, real-time streaming, and zero friction?

For my project, LLM Council, I decided to bridge that gap entirely. Here is the breakdown of how I migrated our native architecture to a high-performance web client.


The Architecture Setup

The goal was simple: support our iOS/Android mobile builds while building a completely detached, premium desktop web app from the exact same codebase.

  • Frontend: Expo Web (React Native for Web) + NativeWind (Tailwind CSS)
  • State Management: Zustand (Local caching, bypassing heavy sync networks for guest modes)
  • Backend: Python / FastAPI hosted on Render
  • Hosting: Vercel (Edge network optimization)

3 Technical Hurdles We Overcame

1. Bypassing CORS with a Server-to-Server Proxy

Browsers enforce strict Cross-Origin Resource Sharing (CORS) rules when talking directly to third-party AI APIs like OpenRouter. To solve this, we routed our frontend requests straight to our FastAPI backend. Because Python servers don't face browser CORS restrictions, our backend handles the secure API calls seamlessly.

2. Live Streams via Server-Sent Events (SSE)

To get that ultra-smooth, ChatGPT-style typing animation on the web, we bypassed heavy database listeners and went straight to the native browser ReadableStream API. We parse the incoming raw binary text streams chunk-by-chunk and surgically dispatch updates to our Zustand store to animate the different stages of the AI debate.

3. Fighting the Vercel "White Screen of Death"

Deploying an Expo Router app on a static platform like Vercel usually results in MIME-type panics or routing issues if you refresh a subpage (like /chat/123). Dropping a custom vercel.json rewrite configuration into our directory fixed the single-page routing loop permanently:

{
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/index.html"
    }
  ]
}


We Are Officially Live! 🚀

The desktop client is officially up, running, and streaming context seamlessly on Vercel's global edge network.

Check out the live announcement and see the final UI breakdown here:

https://x.com/JimmyFalco65924/status/2061129219049181598?s=20

Have you ever migrated an Expo app to the web? What was your biggest layout or deployment hurdle? Let's discuss below!