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 আপনাকে আপনার অ্যাপের স্ট্যাটিক অ্যাসেট (HTML, CSS, JavaScript, মিডিয়া ফাইল, ইত্যাদি) হোস্ট করার পাশাপাশি গতিশীল বিষয়বস্তু এবং মাইক্রোসার্ভিসেস হোস্ট করার জন্য একটি দ্রুত, নিরাপদ এবং নির্ভরযোগ্য উপায় দেয়।
আমাদের প্রোডাকশন-গ্রেড হোস্টিং একটি গ্লোবাল কন্টেন্ট ডেলিভারি নেটওয়ার্ক (CDN) দ্বারা সমর্থিত। Hosting ডিফল্টরূপে SSL এর মাধ্যমে আপনার সামগ্রী পরিবেশন করে এবং web.app এবং firebaseapp.com এ কোনো খরচ ছাড়াই আপনার নিজস্ব কাস্টম ডোমেন বা আপনার প্রকল্পের সাবডোমেনে ব্যবহার করা যেতে পারে।
আপনার স্থানীয় প্রকল্প ফাইলগুলিকে আপনার Firebase প্রকল্পের সাথে সংযুক্ত করতে, আপনার স্থানীয় প্রকল্প ডিরেক্টরির রুট থেকে নিম্নলিখিত কমান্ডটি চালান:
firebase init hosting
প্রকল্প শুরু করার সময়, Firebase সিএলআই প্রম্পট থেকে:
আপনার স্থানীয় প্রকল্প ডিরেক্টরিতে সংযোগ করতে একটি Firebase প্রকল্প নির্বাচন করুন৷
নির্বাচিত ফায়ারবেস প্রকল্পটি আপনার স্থানীয় প্রকল্প ডিরেক্টরির জন্য আপনার "ডিফল্ট" ফায়ারবেস প্রকল্প। আপনার স্থানীয় প্রকল্প ডিরেক্টরিতে অতিরিক্ত ফায়ারবেস প্রকল্পগুলিকে সংযুক্ত করতে, প্রকল্পের উপনাম সেট আপ করুন৷
আপনার পাবলিক রুট ডিরেক্টরি হিসাবে ব্যবহার করার জন্য একটি ডিরেক্টরি নির্দিষ্ট করুন।
এই ডিরেক্টরিতে আপনার index.html ফাইল এবং আপনি Firebase Hosting এ স্থাপন করতে চান এমন অন্যান্য সম্পদ সহ আপনার সমস্ত সর্বজনীনভাবে পরিবেশিত স্ট্যাটিক ফাইল রয়েছে।
পাবলিক রুট ডিরেক্টরির ডিফল্টকে public বলা হয়।
আপনি এখন আপনার পাবলিক রুট ডিরেক্টরি নির্দিষ্ট করতে পারেন অথবা আপনি এটি আপনার firebase.json কনফিগারেশন ফাইলে পরে উল্লেখ করতে পারেন।
আপনি যদি ডিফল্ট নির্বাচন করেন এবং ইতিমধ্যেই public নামক একটি ডিরেক্টরি না থাকে, Firebase আপনার জন্য এটি তৈরি করে।
যদি আপনার পাবলিক রুট ডিরেক্টরিতে আগে থেকেই একটি বৈধ index.html ফাইল বা 404.html ফাইল না থাকে, Firebase আপনার জন্য সেগুলি তৈরি করে৷
আপনার সাইটের জন্য একটি কনফিগারেশন চয়ন করুন.
আপনি যদি একটি এক-পৃষ্ঠার অ্যাপ তৈরি করতে নির্বাচন করেন, তাহলে Firebase স্বয়ংক্রিয়ভাবে আপনার জন্য পুনর্লিখন কনফিগারেশন যোগ করে।
আরম্ভ করার শেষে, Firebase স্বয়ংক্রিয়ভাবে আপনার স্থানীয় অ্যাপ ডিরেক্টরির রুটে দুটি ফাইল তৈরি করে এবং যোগ করে:
একটি firebase.json কনফিগারেশন ফাইল যা আপনার প্রজেক্ট কনফিগারেশন তালিকাভুক্ত করে। কনফিগার হোস্টিং আচরণ পৃষ্ঠায় এই ফাইলটি সম্পর্কে আরও জানুন।
এখন আপনার সাইট বিশ্বের সাথে ভাগ করার জন্য প্রস্তুত!
আপনার সাইট উন্নত করতে অবিরত. স্থানীয়ভাবে পরীক্ষা করুন, একটি অস্থায়ী পূর্বরূপ URL-এ পরিবর্তনগুলি ভাগ করুন, তারপর আপনার লাইভ সাইটে স্থাপন করুন৷ এই ধাপে ধাপে নির্দেশিকা অনুসরণ করুন.
[[["সহজে বোঝা যায়","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 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["\u003cbr /\u003e\n\nFirebase Hosting gives you a fast, secure, and reliable way to host your\napp's static assets (HTML, CSS, JavaScript, media files, etc.) as well as to\n[serve dynamic content and host microservices](/docs/hosting/serverless-overview).\n\nOur production-grade hosting is backed by a global content delivery network\n(CDN). Hosting serves your content over SSL, by default, and can be used\nwith your own [custom domain](/docs/hosting/custom-domain) or on your project's\nsubdomains at no cost on `web.app` and `firebaseapp.com`.\n\nBefore you begin\n\nBefore you can set up Firebase Hosting, you need to\n[create a Firebase project](/docs/web/setup).\n\n**Step 1** : Install the Firebase CLI\n\nVisit the Firebase CLI documentation to learn how to\n[install the CLI](/docs/cli#install_the_firebase_cli) or\n[update to its latest version](/docs/cli#update-cli).\n\n**Step 2**: Initialize your project\n\nTo connect your local project files to your Firebase project, run the following\ncommand from the root of your local project directory: \n\n```\nfirebase init hosting\n```\n\nDuring project initialization, from the Firebase CLI prompts:\n\n1. **Select a Firebase project to connect to your local project directory.**\n\n The selected Firebase project is your \"default\" Firebase project for your\n local project directory. To connect additional Firebase projects to your\n local project directory, set up [project aliases](/docs/cli#project_aliases).\n2. **Specify a directory to use as your public root directory.**\n\n This directory contains all your publicly served static files, including your\n `index.html` file and any other assets that you want to deploy to\n Firebase Hosting.\n - The default for the public root directory is called `public`.\n\n - You can specify your public root directory now or you can\n [specify it later](/docs/hosting/full-config#public) in your\n `firebase.json` configuration file.\n\n - If you select the default and don't already have a directory called\n `public`, Firebase creates it for you.\n\n - If you don't already have a valid `index.html` file or `404.html` file in\n your public root directory, Firebase creates them for you.\n\n3. **Choose a configuration for your site.**\n\n If you select to make a one-page app, then Firebase automatically adds\n [rewrite configurations](/docs/hosting/full-config#rewrites) for you.\n\nAt the end of initialization, Firebase automatically creates and adds two files\nto the root of your local app directory:\n\n- A `firebase.json` configuration file that lists your project configuration.\n Learn more about this file on the\n [configure hosting behavior](/docs/hosting/full-config) page.\n\n- A `.firebaserc` file that stores your\n [project aliases](/docs/cli#project_aliases).\n\n**Step 3**: Deploy to your site\n\nTo deploy to your site, run the following command from the root of your local\nproject directory: \n\n```\nfirebase deploy --only hosting\n```\n| **Note:** By running this command with the `--only hosting` flag, you're only deploying your Hosting content and config. If you *also* want to [deploy other project resources or configurations](/docs/cli#partial_deploys) (like functions or database rules), run this command with a comma-separated list in the flag (for example, `--only hosting,functions`).\n\nThis command deploys your Hosting content and config to the following\nFirebase-provisioned subdomains:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e`.web.app`\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e`.firebaseapp.com`\n\nLearn more about\n[deploys and even locally testing your site](/docs/hosting/test-preview-deploy).\n\nNext steps\n\nNow your site is ready to share with the world!\n\n- Continue to improve your site. Test locally, share changes at a temporary\n preview URL, then deploy to your live site. Follow this\n [step-by-step guide](/docs/hosting/test-preview-deploy).\n\n- Learn about further hosting capabilities:\n\n - [Configure hosting behavior](/docs/hosting/full-config)\n - [Connect a custom domain](/docs/hosting/custom-domain)\n - [Serve dynamic content and host microservices](/docs/hosting/serverless-overview)\n- Take a look at the full documentation for the [Firebase CLI](/docs/cli).\n\n- Prepare to launch your app:\n\n\n - Set up [budget\n alerts](/docs/projects/billing/avoid-surprise-bills#set-up-budget-alert-emails) for your project in the Google Cloud console.\n - Monitor the [*Usage and billing*\n dashboard](//console.firebase.google.com/project/_/usage) in the Firebase console to get an overall picture of your project's usage across multiple Firebase services. You can also visit the [Hosting *Usage*\n dashboard](//console.firebase.google.com/project/_/hosting/usage) for more detailed usage information.\n - Review the [Firebase launch checklist](/support/guides/launch-checklist)."]]