diff --git a/.changeset/rotten-lizards-wonder.md b/.changeset/rotten-lizards-wonder.md new file mode 100644 index 000000000..76649555a --- /dev/null +++ b/.changeset/rotten-lizards-wonder.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +fix auth imports, was causing issues with --turbo diff --git a/apps/core/app/[locale]/(default)/login/_actions/submit-login-form.ts b/apps/core/app/[locale]/(default)/login/_actions/submit-login-form.ts index 3d697333b..a69f18c8d 100644 --- a/apps/core/app/[locale]/(default)/login/_actions/submit-login-form.ts +++ b/apps/core/app/[locale]/(default)/login/_actions/submit-login-form.ts @@ -2,7 +2,7 @@ import { isRedirectError } from 'next/dist/client/components/redirect'; -import { Credentials, signIn } from 'auth'; +import { Credentials, signIn } from '~/auth'; export type State = { status: 'idle' } | { status: 'failed' }; diff --git a/apps/core/app/api/auth/[...nextauth]/route.ts b/apps/core/app/api/auth/[...nextauth]/route.ts index 0288460bd..b366dd119 100644 --- a/apps/core/app/api/auth/[...nextauth]/route.ts +++ b/apps/core/app/api/auth/[...nextauth]/route.ts @@ -1,3 +1,3 @@ -import { handlers } from 'auth'; +import { handlers } from '~/auth'; export const { GET, POST } = handlers; diff --git a/apps/core/middlewares/with-auth.ts b/apps/core/middlewares/with-auth.ts index b08033263..cc6641ad2 100644 --- a/apps/core/middlewares/with-auth.ts +++ b/apps/core/middlewares/with-auth.ts @@ -1,4 +1,4 @@ -import { auth } from 'auth'; +import { auth } from '~/auth'; import { type MiddlewareFactory } from './compose-middlewares';