If you are building server-rendered Angular or Next.js apps, check out next-generation Firebase App Hosting, a full-stack solution for modern web frameworks.
درباره سطوح استفاده، سهمیه ها و قیمت هاستینگ بیاموزید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
قیمت Firebase Hosting بر اساس استفاده پروژه شما از موارد زیر است:
فضای ذخیره سازی Hosting (GB) - مقدار فضای ذخیره سازی مورد نیاز برای ذخیره محتوای سایت های Hosting شما (فایل های استاتیک و فایل های پیکربندی شما).
انتقال داده (گیگابایت/ماه) - مقدار دادهای که از CDN ما به کاربران نهایی منتقل میشود. هر سایت Hosting به طور خودکار توسط CDN جهانی ما بدون هزینه پشتیبانی می شود.
سهمیه Hosting شما در سطح پروژه است، نه در سطح سایت یا در سطح کانال. میتوانید پروژه خود را به طرح صورتحساب Blaze ارتقا دهید تا فضای ذخیرهسازی پولی اضافی و سطوح انتقال داده را باز کنید. درباره سهمیه ها و قیمت گذاری برای Firebase Hosting بیشتر بدانید.
توصیه می کنیم هشدارهای بودجه را برای پروژه خود در کنسول Google Cloud تنظیم کنید.
هم سطح فضای ذخیره Hosting و هم سطح انتقال داده را در کنسول Firebase نظارت کنید:
از داشبورد Usage در بخش Hosting کنسول دیدن کنید. می توانید سطوح استفاده را برای دوره های مختلف صورتحساب و همچنین برای همه سایت های Hosting خود یا برای هر سایت مشاهده کنید.
هنگامی که محتوای جدیدی را در سایت خود مستقر می کنید، یک "انتشار" ایجاد می کنید که به نسخه خاصی از محتوا و پیکربندی برای سایت شما اشاره می کند. فایل های مرتبط با هر نسخه (چه نسخه های جدید و چه نسخه های قبلی حفظ شده) توسط Firebase ذخیره می شوند. این فایل ها سطح استفاده از فضای ذخیره سازی Hosting پروژه شما را تشکیل می دهند.
این فضای ذخیره Hosting مستقل است و با هیچ فضای ذخیره سازی دیگری برای پروژه Firebase شما (مانند Cloud Storage for Firebase یا ذخیره سازی پایگاه داده) ارتباطی ندارد.
توجه داشته باشید که Hosting دارای حداکثر حجم 2 گیگابایت برای فایل های جداگانه است.
سهمیه برای ذخیره سازی Hosting
فضای ذخیره سازی برای محتوای Hosting شما تا 10 گیگابایت بدون هزینه است.
اگر در طرح Blaze نیستید و به محدودیت 10 گیگابایت فضای ذخیرهسازی Hosting بدون هزینه رسیدهاید، نمیتوانید محتوای جدید را در سایتهای خود مستقر کنید. باید نسخههای قدیمیتر را حذف کنید یا به طرح Blaze ارتقا دهید .
اگر در طرح Blaze هستید و به حداکثر 10 گیگابایت فضای ذخیرهسازی Hosting بدون هزینه رسیدهاید، برای هر گیگابایت فضای ذخیرهسازی Hosting اضافی 0.026 دلار از شما کسر میشود.
کنترل استفاده از فضای Hosting
برای کنترل استفاده از فضای ذخیره سازی Hosting خود، در اینجا مواردی وجود دارد که می توانید انجام دهید:
فایلهای بزرگتر را با استفاده از Cloud Storage for Firebase ذخیره کنید، که حداکثر محدودیت اندازه را در محدوده ترابایت برای اشیاء جداگانه ارائه میکند.
انتقال داده Hosting را درک کنید
هنگامی که Hosting یکی از منابع سایت شما را ارائه می دهد، داده ها از CDN ما به کاربر نهایی شما منتقل می شود. منبع درخواستی ممکن است قبلاً در حافظه نهان CDN ما موجود باشد (یک ضربه به حافظه پنهان) یا ممکن است لازم باشد از قسمت پشتیبان Hosting (یک خطا در حافظه پنهان) آمده باشد. اگر محتوای درخواستی را بتوان در CDN کش کرد، می شود. هم بازدیدهای حافظه پنهان و هم از دست دادن ها در مصرف انتقال داده Hosting پروژه شما به حساب می آیند.
سهمیه انتقال داده Hosting
هر سایت Hosting به طور خودکار توسط CDN جهانی ما بدون هزینه پشتیبانی می شود. انتقال داده از CDN به کاربران نهایی شما تا 10 گیگابایت در ماه بدون هزینه است.
اگر در طرح Blaze نیستید و به سقف 10 گیگابایت در ماه انتقال داده بدون هزینه رسیدید، ما یک مهلت کوتاه ارائه می دهیم، اما پس از آن سایت های شما غیرفعال می شوند. سایتهای شما تا آغاز ماه آینده غیرفعال میمانند زیرا صورتحساب انتقال داده براساس سطوح استفاده ماهانه است. با ارتقا به طرح Blaze می توانید بلافاصله سایت های خود را دوباره فعال کنید.
اگر در طرح Blaze هستید و به سقف 10 گیگابایت در ماه انتقال داده بدون هزینه رسیدهاید، برای هر گیگابایت داده اضافی که در آن ماه منتقل میشود 0.15 دلار از شما کسر میشود.
کنترل استفاده از انتقال داده Hosting
برای کنترل استفاده از انتقال داده Hosting خود، در اینجا مواردی وجود دارد که می توانید انجام دهید:
حافظه پنهان سمت سرویس گیرنده محتوای خود را به خوبی تنظیم کنید تا مرورگرها نیازی به درخواست منبع از CDN نداشته باشند. در اسناد برنامهنویس وب درباره حافظه پنهان بیشتر بیاموزید.
از بارگذاری تصاویر و ویدیوهایی که واقعاً نیازی به نمایش آنها ندارید، خودداری کنید.
کارگران خدماتی را برای رسیدگی به درخواست های خاص ایجاد کنید. اگر SDKهای Firebase را از طریق نشانیهای اینترنتی Hosting رزرو شده بارگیری میکنید، مطمئن شوید که اطلاعات مهمی درباره فضای نام رزرو شده برای این نشانیهای وب را مطالعه کردهاید.
در اینجا چند منبع برای کمک به شما در راه اندازی سرویس دهنده ها، به خصوص با PWA وجود دارد:
تاریخ آخرین بهروزرسانی 2025-08-30 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-08-30 بهوقت ساعت هماهنگ جهانی."],[],[],null,["\u003cbr /\u003e\n\nThe pricing for Firebase Hosting is based upon your project's usage of the\nfollowing:\n\n- [Hosting storage](#hosting-storage) (GB) --- The amount of storage space\n required to store the content of your Hosting sites (your static files and\n your configuration files).\n\n- [Data transfer](#hosting-data-transfer) (GB/month) --- The amount of data\n transferred to end users from our CDN. Every Hosting site is automatically\n backed by our global CDN at no charge.\n\nYour Hosting quota is project-level, not site-level or channel-level. You\ncan upgrade your project to the Blaze billing plan to unlock additional paid\nstorage and data transfer levels. Learn more about\n[quotas and pricing for Firebase Hosting](/pricing#hosting).\n\nWe recommend setting up\n[budget alerts](/docs/projects/billing/avoid-surprise-bills#set-up-budget-alert-emails)\nfor your project in the Google Cloud console.\n\nMonitor both your Hosting storage level and data transfer level in the\nFirebase console:\n\n- Visit the [*Usage*](//console.firebase.google.com/project/_/hosting/usage)\n dashboard in the *Hosting* section of the console. \n\n You can view the usage levels for different billing periods as well as for all\n your Hosting sites or for each site.\n\n- Visit your project's\n [*Usage and billing* dashboard](//console.firebase.google.com/project/_/usage)\n in the console.\n\n| When your project is on the Blaze pricing plan, [**set up budget alerts**](/docs/projects/billing/avoid-surprise-bills#set-up-budget-alert-emails) using the console. You can use the [Blaze plan calculator](/pricing#blaze-calculator) to estimate your monthly costs.\n|\n| Be aware that **budget alerts do *not* cap your usage or\n| charges** --- they are *alerts* about your costs so that you can\n| take action, if needed. For example, you might consider\n| [using\n| budget notifications to programmatically disable Cloud Billing on a\n| project](https://cloud.google.com/billing/docs/how-to/disable-billing-with-notifications).\n\nUnderstand Hosting storage\n\nWhen you deploy new content to your site, you create a \"release\" that points to\na specific version of content and configuration for your site. The files\nassociated with each release (both new releases and any retained previous\nreleases) are stored by Firebase. These files make up your project's Hosting\nstorage usage level.\n\nThis Hosting storage is independent and unrelated to any other storage for\nyour Firebase project (like Cloud Storage for Firebase or database storage).\n\nNote that Hosting has a maximum size limit of 2 GB for\nindividual files.\n\nQuota for Hosting storage\n\nStorage for your Hosting content is at no cost up to\n10 GB.\n\n- If you are *not* on the Blaze plan, and you reach the\n 10 GB limit of no-cost Hosting storage, you won't be\n able to deploy new content to your sites. You'll need to\n [delete older releases](/docs/hosting/manage-hosting-resources#delete-release)\n or\n [upgrade to the Blaze plan](//console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered).\n\n- If you are on the Blaze plan, and you reach the 10 GB\n limit of no-cost Hosting storage, you'll be billed $0.026 for each additional\n GB of Hosting storage.\n\nControl usage of Hosting storage\n\nTo control your Hosting storage usage, here are some things you can do:\n\n- [Set a limit](/docs/hosting/manage-hosting-resources#release-storage-settings)\n for the number of releases to keep.\n\n- [Manually delete](/docs/hosting/manage-hosting-resources#delete-release)\n specific releases.\n\n- Store larger files using [Cloud Storage for Firebase](/docs/storage), which\n offers a maximum size limit in the terabyte range for individual objects.\n\nUnderstand Hosting data transfer\n\nWhen Hosting serves one of your site's resources, data transfers from our\nCDN to your end user. The requested resource might already be available in our\nCDN cache (a cache hit) or it might need to come from the Hosting backend (a\ncache miss). If the requested content can be cached in the CDN, it will be. Both\ncache hits and misses count toward your project's Hosting data transfer\nusage.\n\nQuota for Hosting data transfer\n\nEvery Hosting site is automatically backed by our global CDN at no charge.\nData transfer from the CDN to your end users is at no cost up to\n10 GB/month.\n\n- If you are *not* on the Blaze plan, and you reach the\n 10 GB/month limit of no-cost data transfer, we\n offer a short grace period but then your sites will be disabled. Your sites\n will remain disabled until the start of the next month because data transfer\n billing is based on *monthly* usage levels. You can reenable your sites\n immediately by [upgrading to the\n Blaze plan](//console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered).\n\n- If you are on the Blaze plan, and you reach the\n 10 GB/month limit of no-cost data transfer, you'll be\n billed $0.15 for each additional GB of data transferred that month.\n\nControl usage of Hosting data transfer\n\nTo control your Hosting data transfer usage, here are some things you can\ndo:\n\n- Fine-tune the client-side caching of your content so that browsers don't need\n to request a resource from the CDN. Learn more about caching in the\n [web developer documentation](//web.dev/http-cache/#cache-control).\n\n- Avoid loading images and videos that you don't actually need to display.\n\n- Create service workers to handle certain requests. \n\n If you load Firebase SDKs via reserved Hosting URLs, make sure to read\n important information about the\n [reserved namespace for these URLs](/docs/hosting/reserved-urls#reserved_urls_and_service_workers).\n\n Here are some resources to help you set up service workers, especially with a\n PWA:\n - Codelab: [Caching files with the service worker](//codelabs.developers.google.com/codelabs/pwa-caching-service-worker/index.html)\n\n - Documentation: [Service Worker Mindset](//web.dev/service-worker-mindset/#powerful-but-limited)"]]