export async function GET() {
  // Simple test to see if environment variables are working at all
  return Response.json({
    message: "Environment variable test",
    nodeEnv: process.env.NODE_ENV,
    hasSquareToken: !!process.env.SQUARE_ACCESS_TOKEN,
    tokenPreview: process.env.SQUARE_ACCESS_TOKEN
      ? process.env.SQUARE_ACCESS_TOKEN.substring(0, 10) + "..."
      : "not found",
    hasLocationId: !!process.env.SQUARE_LOCATION_ID,
    locationPreview: process.env.SQUARE_LOCATION_ID
      ? process.env.SQUARE_LOCATION_ID.substring(0, 5) + "..."
      : "not found",
    environment: process.env.SQUARE_ENVIRONMENT || "not set",
    timestamp: new Date().toISOString(),
  })
}
