Creative Analyzer - v0.0.1
    Preparing search index...

    Variable analyzeRequestSchemaConst

    analyzeRequestSchema: ZodObject<
        { url: ZodEffects<ZodString, string, string> },
        "strip",
        ZodTypeAny,
        { url: string },
        { url: string },
    > = ...

    Zod schema for the request body of POST /api/analyze.

    Accepts only URLs whose hostname is drive.google.com or drive.usercontent.google.com. Any other scheme (ftp://, data:, ...) or hostname is rejected at the boundary with HTTP 400.

    const parsed = analyzeRequestSchema.safeParse(await request.json());
    if (!parsed.success) return jsonError(400, 'Please paste a valid Drive URL.');