Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Nov 22, 2024
1 parent 2821d7b commit fd90d78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
poweredByHeader: false,
};

export default nextConfig;
4 changes: 1 addition & 3 deletions src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export default async function AuthLayout(props: AuthLayoutProps) {
const queryClient = getQueryClient();

// Fetch current user data set cookies are required else they will be empty
const { data: me, error: meError } = await rpc.api.user.me.get(
await setCookies(),
);
const { error: meError } = await rpc.api.user.me.get(await setCookies());

// serverUrl is a custom function because nextjs doesnt provide a way to read current url in server components
if (!meError && !(await serverUrl())?.includes("logout"))
Expand Down
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export default async function middleware(request: NextRequest) {
}

export const config = {
matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
matcher: ["/((?!api|_next|_vercel|.*\\..*).*)"],
};

0 comments on commit fd90d78

Please sign in to comment.