路由处理

This commit is contained in:
Xin Wang 2025-06-30 17:34:38 +08:00
parent 69be9677fe
commit c658c987ea
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,8 @@
import { NextRequest, NextResponse } from 'next/server';
// Prevent static rendering of this route
export const dynamic = 'force-dynamic';
/**
* Handle Google OAuth callback
* In a real app, this would:

View File

@ -1,5 +1,5 @@
// Mock Google OAuth configuration
const GOOGLE_CLIENT_ID = 'your-google-client-id';
const GOOGLE_CLIENT_ID = '1016208801816-qtvcvki2jobmcin1g4e7u4sotr0p8g3u.apps.googleusercontent.com';
const GOOGLE_REDIRECT_URI = typeof window !== 'undefined'
? `${window.location.origin}/api/auth/google/callback`
: '';

View File

@ -1,6 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
eslint: {
ignoreDuringBuilds: true,
},