Skip to content

Commit a809e46

Browse files
committed
Third times the charm.
1 parent 5f00b6a commit a809e46

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { NextResponse } from 'next/server';
2-
31
export const dynamic = 'force-static';
42

53
export async function GET() {
6-
return NextResponse.redirect('/?error=auth_callback_not_supported');
4+
return new Response('Static export build: Google auth callback is handled by the backend redirect.', {
5+
status: 410,
6+
headers: {
7+
'Content-Type': 'text/plain; charset=utf-8',
8+
},
9+
});
710
}
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { NextResponse } from 'next/server';
2-
3-
const BACKEND_URL = process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:5000';
4-
51
export const dynamic = 'force-static';
62

73
export async function GET() {
8-
return NextResponse.redirect(`${BACKEND_URL}/api/auth/google`);
4+
return new Response('Static export build: use the frontend Google sign-in button instead.', {
5+
status: 410,
6+
headers: {
7+
'Content-Type': 'text/plain; charset=utf-8',
8+
},
9+
});
910
}

0 commit comments

Comments
 (0)