Use dev urls everywhere when configured that way

I think we were just using some constants that ended up returning bad
values for dev, it seemed to return a working shortlink when I went
through the flow.
This commit is contained in:
Adam Sunderland
2025-01-14 17:16:16 -05:00
parent df01c233e4
commit 08e714080e
2 changed files with 5 additions and 14 deletions

View File

@ -197,16 +197,8 @@ function ProjectMenuPopover({
* This override allows us to shim in an environment variable
* for the prod token.
*/
const token = DEV ? VITE_KC_PROD_TOKEN : auth.context.token
if (DEV && !VITE_KC_PROD_TOKEN) {
toast.error(
'You need to set a prod token in your environment to share a file in development.',
{
duration: 5000,
}
)
return
} else if (!token) {
const token = auth.context.token
if (!token) {
toast.error('You need to be signed in to share a file.', {
duration: 5000,
})