Skip to content

chore: add /console and /dashboard redirects#89

Merged
akhileshrangani4 merged 3 commits intomainfrom
add-console-redirects
Feb 22, 2026
Merged

chore: add /console and /dashboard redirects#89
akhileshrangani4 merged 3 commits intomainfrom
add-console-redirects

Conversation

@michaelmagan
Copy link
Contributor

@michaelmagan michaelmagan commented Feb 21, 2026

Summary

  • Adds /console redirect -> https://console.tambo.co (root path only)
  • Adds /dashboard/:path* redirect -> https://console.tambo.co/:path* (covers /dashboard + deep links)
  • All are non-permanent (302) redirects

Note: /console is intentionally root-only; the wildcard redirect was requested only for /dashboard.

Test plan

  • Visit tambo.co/console and verify redirect to console.tambo.co
  • Visit tambo.co/dashboard and verify redirect to console.tambo.co
  • Visit tambo.co/dashboard/settings and verify redirect to console.tambo.co/settings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tambo-landing Ready Ready Preview, Comment Feb 21, 2026 7:00pm

@github-actions github-actions bot added status: in progress Work is currently being done contributor: tambo-team Created by a Tambo team member labels Feb 21, 2026
Copy link

@charliecreates charliecreates bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The redirects are correct for the exact root paths, but they likely won’t cover common variants like trailing slashes or nested routes (e.g., /console/settings). If the intent is to forward console/dashboard traffic broadly, add path-preserving wildcard redirects to avoid broken deep links.

Additional notes (1)
  • Maintainability | next.config.ts:245-254
    Both /console and /dashboard point to the same destination. If this is expected, it’s fine, but it can be easy for these to diverge or for one to get updated while the other is forgotten. Consider consolidating via a small helper/constant (or a short comment) to make the shared intent obvious and reduce maintenance risk.
Summary of changes

What changed

  • Added two new Next.js redirects entries in next.config.ts:
    • /consolehttps://console.tambo.co
    • /dashboardhttps://console.tambo.co
  • Both redirects are configured as temporary (permanent: false, i.e., 302/307 depending on Next.js behavior).

Files touched:

  • next.config.ts (redirects array)

next.config.ts Outdated
Comment on lines +245 to +254
{
source: '/console',
destination: 'https://console.tambo.co',
permanent: false,
},
{
source: '/dashboard',
destination: 'https://console.tambo.co',
permanent: false,
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These redirects only match the exact paths (/console and /dashboard). Requests like /console/ or /console/some/path will not be redirected, which is a common source of "it works for me" issues in production (trailing slashes, deep links, bookmarks). If you intend to forward the whole console/dashboard subtree to console.tambo.co, you should add wildcard redirects as well.

Suggestion

Consider adding path-preserving redirects for both routes, and optionally handle trailing slashes explicitly. For example:

  • { source: '/console/:path*', destination: 'https://console.tambo.co/:path*', permanent: false }
  • { source: '/dashboard/:path*', destination: 'https://console.tambo.co/:path*', permanent: false }

If you only want the root pages, consider also covering '/console/' and '/dashboard/' (depending on your trailingSlash setting). Reply with "@CharlieHelps yes please" if you'd like me to add a commit with these redirect rules.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do this just for dashboard. @CharlieHelps

Copy link

@charliecreates charliecreates bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expand this to see my work.
  • Re-read the review comment on PR #89 to confirm the request is to scope the redirect change to /dashboard only in next.config.ts.
  • Reviewed and updated the redirect rules in next.config.ts so the new logic applies only to /dashboard, leaving /console behavior unchanged, and consolidated to a single source: '/dashboard/:path*' rule pointing to https://console.tambo.co/:path*.
  • Validated the updated redirects() export shape in next.config.ts and ran git diff to confirm the only change is the consolidated /dashboard/:path* redirect entry.
  • Ran bun run lint (Biome) and confirmed it completed successfully with 191 files checked and no fixes needed, covering the next.config.ts change.
  • Ran bun run typecheck and confirmed TypeScript reported no type errors after the redirect config update.
  • Ran bun run build and confirmed the Next.js production build completed successfully, indicating the new /dashboard/:path* redirect config is valid.
  • Edited the body of PR #89 to replace non-printable arrow characters with plain -> arrows in the Summary and Test plan sections so the description renders cleanly.
  • Re-ran bun run build after removing the redundant bare /dashboard rule to rely solely on source: '/dashboard/:path*', confirming the app still builds cleanly.
  • Smoke-tested the redirects by running bun run start on port 3011 and using curl to confirm /dashboardhttps://console.tambo.co and /dashboard/settingshttps://console.tambo.co/settings via the consolidated wildcard rule.
  • Updated the PR #89 description to explicitly document that /console remains a root-only redirect while /dashboard/:path* is path-preserving, matching the reviewer request to apply the wildcard only to /dashboard.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#89 (comment)

Updated this to do wildcard forwarding only for /dashboard, per your note. /dashboard/:path* now redirects to https://console.tambo.co/:path* (so deep links work), and /console remains root-only.

Change is in c8b3539e086c16f4d5cb63bfe7ba4d3f101f573d.

Verification
# Biome: no issues
$ bun run lint

# TypeScript: no errors
$ bun run typecheck

# Next.js: build succeeded
$ bun run build

@charliecreates charliecreates bot removed the request for review from CharlieHelps February 21, 2026 18:46
@michaelmagan michaelmagan changed the title Add /console and /dashboard redirects chore: add /console and /dashboard redirects Feb 21, 2026
@github-actions github-actions bot added the change: chore Maintenance and chores label Feb 21, 2026
@github-actions github-actions bot added contributor: ai AI-assisted contribution and removed contributor: tambo-team Created by a Tambo team member labels Feb 21, 2026
Copy link

@charliecreates charliecreates bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The redirects are generally correct and match the stated intent, but there are a couple of edge cases worth addressing: /console won’t match /console/, and the wildcard /dashboard/:path* may redirect /dashboard to https://console.tambo.co/ (with a trailing slash) rather than the canonical https://console.tambo.co. Neither is a blocker, but both can cause production inconsistencies depending on client/proxy behavior.

Summary of changes

Redirect rules added

Updated next.config.ts to add two new Next.js redirect entries:

  • source: '/console'destination: 'https://console.tambo.co' (temporary)
  • source: '/dashboard/:path*'destination: 'https://console.tambo.co/:path*' (temporary, path-preserving)

These live alongside the existing /start and /x redirects in the redirects() configuration.

@charliecreates charliecreates bot removed the request for review from CharlieHelps February 21, 2026 19:02
@akhileshrangani4 akhileshrangani4 merged commit db20b83 into main Feb 22, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change: chore Maintenance and chores contributor: ai AI-assisted contribution status: in progress Work is currently being done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants