Skip to content

Roll out console.smartloop.ai alongside app.smartloop.ai - #22

Closed
mehfuzh wants to merge 2 commits into
mainfrom
console-domain
Closed

mehfuzh wants to merge 2 commits into
mainfrom
console-domain

Conversation

@mehfuzh

@mehfuzh mehfuzh commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Rolling move from app.smartloop.ai to console.smartloop.ai. Both domains serve the app until links have moved over. No change to public/CNAME: GitHub Pages stays on app, so nothing that points there breaks. This PR only updates the docs.

Cloudflare (smartloop.ai zone)

  1. Add DNS record console: AAAA 100::, proxied (placeholder; the Worker answers the requests)
  2. Workers → create a worker, add route console.smartloop.ai/*:
export default {
  async fetch(req) {
    const url = new URL(req.url);
    url.hostname = 'app.smartloop.ai';
    const res = await fetch(new Request(url, req), { redirect: 'manual' });
    // Pages redirects (e.g. /login -> /login/) point at app; keep users on console.
    const loc = res.headers.get('Location');
    if (!loc) return res;
    const out = new Response(res.body, res);
    out.headers.set('Location', loc.replace('https://app.smartloop.ai', 'https://console.smartloop.ai'));
    return out;
  },
};

Elsewhere

  • Add https://console.smartloop.ai to the CORS and OAuth redirect allowlists on api.smartloop.ai and gpushed-api.smartloop.ai (keep app)
  • Point smartloop.ai links at console

Later, once app traffic dies down

Set public/CNAME and the Pages custom domain to console, delete the Worker, and add a 301 redirect rule from app to console that keeps the path and query string.

🤖 Generated with Claude Code

mehfuzh and others added 2 commits November 19, 2026 22:26
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep GitHub Pages on app.smartloop.ai; console.smartloop.ai is proxied
by a Cloudflare Worker until links have moved over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mehfuzh mehfuzh changed the title Move the console to console.smartloop.ai Roll out console.smartloop.ai alongside app.smartloop.ai Nov 20, 2026
@mehfuzh

mehfuzh commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Closing for now; staying on app.smartloop.ai. The console DNS record is in place for a later cut-over.

@mehfuzh mehfuzh closed this Nov 20, 2026
@mehfuzh
mehfuzh deleted the console-domain branch November 20, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant