diff --git a/.changeset/config.json b/.changeset/config.json index 6e92a74..de1aed0 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "basementstudio/create-basement-app" } + { "repo": "basementstudio/create-bsmnt-app" } ], "commit": false, "fixed": [], diff --git a/cli/template/extras/src/pages/api/auth/[...nextauth].ts b/cli/template/extras/src/pages/api/auth/[...nextauth].ts deleted file mode 100644 index a21c9b4..0000000 --- a/cli/template/extras/src/pages/api/auth/[...nextauth].ts +++ /dev/null @@ -1,5 +0,0 @@ -import NextAuth from 'next-auth' - -import { authOptions } from '~/server/auth' - -export default NextAuth(authOptions) diff --git a/cli/template/extras/src/pages/api/trpc/[trpc].ts b/cli/template/extras/src/pages/api/trpc/[trpc].ts deleted file mode 100644 index ddc1d40..0000000 --- a/cli/template/extras/src/pages/api/trpc/[trpc].ts +++ /dev/null @@ -1,19 +0,0 @@ -import { createNextApiHandler } from '@trpc/server/adapters/next' - -import { env } from '~/env' -import { appRouter } from '~/server/api/root' -import { createTRPCContext } from '~/server/api/trpc' - -// export API handler -export default createNextApiHandler({ - router: appRouter, - createContext: createTRPCContext, - onError: - env.NODE_ENV === 'development' - ? ({ path, error }) => { - console.error( - `❌ tRPC failed on ${path ?? ''}: ${error.message}` - ) - } - : undefined, -})