/**
 * StaticQ Test Worker
 *
 * Simple worker to verify deployment is working.
 */

export default {
    async fetch(request, env, ctx) {
        return new Response(JSON.stringify({
            success: true,
            message: 'StaticQ worker is running',
            timestamp: new Date().toISOString(),
            hasR2Binding: !!env.MEDIA_BUCKET
        }), {
            headers: {
                'Content-Type': 'application/json',
                'x-staticq-test': 'true'
            }
        });
    }
};