mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
move import
This commit is contained in:
parent
25c05014b5
commit
2b436219d0
@ -2,6 +2,7 @@ import { WebAuthnError, startAuthentication, startRegistration } from "@simplewe
|
||||
import { KnownErrors, StackClientInterface } from "@stackframe/stack-shared";
|
||||
import { ContactChannelsCrud } from "@stackframe/stack-shared/dist/interface/crud/contact-channels";
|
||||
import { CurrentUserCrud } from "@stackframe/stack-shared/dist/interface/crud/current-user";
|
||||
import { ProjectPermissionsCrud } from "@stackframe/stack-shared/dist/interface/crud/project-permissions";
|
||||
import { ProjectsCrud } from "@stackframe/stack-shared/dist/interface/crud/projects";
|
||||
import { SessionsCrud } from "@stackframe/stack-shared/dist/interface/crud/sessions";
|
||||
import { TeamInvitationCrud } from "@stackframe/stack-shared/dist/interface/crud/team-invitation";
|
||||
@ -40,13 +41,13 @@ import { StackClientApp, StackClientAppConstructorOptions, StackClientAppJson }
|
||||
import { _StackAdminAppImplIncomplete } from "./admin-app-impl";
|
||||
import { TokenObject, clientVersion, createCache, createCacheBySession, createEmptyTokenStore, getBaseUrl, getDefaultExtraRequestHeaders, getDefaultProjectId, getDefaultPublishableClientKey, getUrls } from "./common";
|
||||
|
||||
|
||||
import { useAsyncCache } from "./common"; // THIS_LINE_PLATFORM react-like
|
||||
|
||||
let isReactServer = false;
|
||||
// IF_PLATFORM next
|
||||
import * as sc from "@stackframe/stack-sc";
|
||||
import { cookies } from '@stackframe/stack-sc';
|
||||
import { ProjectPermissionsCrud } from "@stackframe/stack-shared/dist/interface/crud/project-permissions";
|
||||
isReactServer = sc.isReactServer;
|
||||
|
||||
// NextNavigation.useRouter does not exist in react-server environments and some bundlers try to be helpful and throw a warning. Ignore the warning.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user