File tree Expand file tree Collapse file tree
frontend/src/app/api/auth/google Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { NextResponse } from 'next/server' ;
2-
31export const dynamic = 'force-static' ;
42
53export 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}
Original file line number Diff line number Diff line change 1- import { NextResponse } from 'next/server' ;
2-
3- const BACKEND_URL = process . env . NEXT_PUBLIC_API_URL ?? 'http://localhost:5000' ;
4-
51export const dynamic = 'force-static' ;
62
73export 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}
You can’t perform that action at this time.
0 commit comments