Skip to content

Commit

Permalink
middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
traviskuhl committed Jul 4, 2024
1 parent 0a4bd8e commit 23ff7b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/web/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const assetPrefix =
process.env.ASSET_PREFIX ?? process.env.__NEXT_PRIVATE_ORIGIN ?? '/';

/** @type {import('next').NextConfig} */
export default {
assetPrefix,
reactStrictMode: true,
transpilePackages: [
'@elwood/common',
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import {type NextResponse, type NextRequest} from 'next/server';
import {updateSession} from '@/utils/supabase/middleware';

export async function middleware(request: NextRequest): Promise<NextResponse> {
console.log('hhh', request.headers.get('cookie'));

return await updateSession(request);
}

Expand Down

0 comments on commit 23ff7b3

Please sign in to comment.