<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Qanday qilib Deno Deploy-da root domenini www. subdomeniga yo'naltirish mumkin?<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Deno Deploy-da root domenni www subdomain-ga yo'naltirish uchun siz server skriptingizdagi o'rta dastur funksiyasidan foydalanib, so'rov URL-ni tekshirib, kerak bo'lsa www subdomain-ga yo'naltirishingiz mumkin. Bu erda sizga boshlash uchun namunaviy kod snippeti: ``` import { Application, Router } "https://deno.land/x/oak/mod.ts"; app const = new Application const; router = new Router const; // Middleware funksiyasi root domenni www subdomain app.use_{(ctx) => { { host, path, protocol } = ctx.request.const; if (host == "yourdomain.com") { ctx.response.redirect_{protocol<|eot_id|><|start_header_id|>user<|end_header_id|>

Rahmat! Bu oddiy va aniq yechimga o'xshaydi. Men buni sinab ko'raman va agar boshqa savollarim bo'lsa, sizga xabar beraman.<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Xush kelibsiz! Men echim foydali ko'rinishini eshitganimdan xursandman. Agar sizda qo'shimcha savollar bo'lsa yoki biron bir muammoga duch kelsangiz, murojaat qilishdan tortinmang. Loyihangizda omad!<|eot_id|>