Skip to content

Commit

Permalink
Routes: navigate to chat
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Oct 17, 2023
1 parent 52d26cb commit a5c89a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
// We will centralize them here, for UI and routing purposes.
//

import { NextRouter } from 'next/router';

const APP_CHAT = '/';
const APP_SHARING = '/shared/:sharedId';


export const getSharingRelativePath = (sharedId: string) => APP_SHARING.replace(':sharedId', sharedId);

export const navigateToChat = async (next: NextRouter['push'] | NextRouter['replace']) =>
next(APP_CHAT).then(() => null);

1 comment on commit a5c89a3

@vercel
Copy link

@vercel vercel bot commented on a5c89a3 Oct 17, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

big-agi – ./

big-agi-enricoros.vercel.app
big-agi-git-main-enricoros.vercel.app
get.big-agi.com

Please sign in to comment.