export async function GET() {
  // This will help us see what's actually happening with your environment variables
  return Response.json({
    nodeEnv: process.env.NODE_ENV,
    hasSquareToken: !!process.env.SQUARE_ACCESS_TOKEN,
    tokenLength: process.env.SQUARE_ACCESS_TOKEN?.length || 0,
    tokenStart: process.env.SQUARE_ACCESS_TOKEN?.substring(0, 10) || "none",
    hasLocationId: !!process.env.SQUARE_LOCATION_ID,
    locationLength: process.env.SQUARE_LOCATION_ID?.length || 0,
    locationStart: process.env.SQUARE_LOCATION_ID?.substring(0, 5) || "none",
    environment: process.env.SQUARE_ENVIRONMENT || "not set",
    allEnvKeys: Object.keys(process.env).filter((key) => key.includes("SQUARE")),
    timestamp: new Date().toISOString(),
  })
}
