import { env } from '@4runr/shared';
export function isDevKitEnabled() {
    const devkitEnabled = env.DEVKIT_ENABLED;
    const notProduction = env.NODE_ENV !== 'production';
    return devkitEnabled && notProduction;
}
export async function requireDevKit(request, reply) {
    if (!isDevKitEnabled()) {
        reply.status(404).send({
            error: 'not_found',
            message: 'Route not found'
        });
        return;
    }
}
export function getDevKitStatus() {
    return {
        enabled: isDevKitEnabled(),
        env: env.NODE_ENV,
        devMode: env.DEV_MODE
    };
}
//# sourceMappingURL=middleware.js.map