Firebase Hosting Setup Complete Issue

ফায়ারবেইজের এই সমস্যটি আমাদের সবচেয়ে  বেশি মাথা খারাপ করে দেয় । 😠

সমস্যার কারণঃ আমরা  যখন হোস্টিং এর কমান্ডগুলো  চালায় , ভুলে 

What do you want to use as your public directory?     দিয়ে ফেলি ।

সমাধানের উপায়ঃ

Step 1: 

প্রথমেই build folder এবং  .firebase , .firebaserc , firebase.json , package-lock.json , yarn.lock ( if exist ডিলিট করে দিন।



Step 2

firebase init এই কমান্ড টি দিন।  নিচের স্টেপ্সগুলো ঠিকমত দিন 👀

  •  What do you want to use as your public directory?   build     
  •  Configure as a single-page app (rewrite all urls to /index.html)?  Yes
  •  Set up automatic builds and deploys with GitHub?   No
  •  File build/index.html already exists. Overwrite?   Yes


Step 3: 

৩ minute পর আপনার লাইভ লিঙ্ক chrome browser  গিয়ে আপনার লাইভ লিঙ্ক হিট করুন ।  console tab ওপেন রেখে reload button এ মাউস  চেপে ধরে empy cache and hard reload করেন কয়েকবার। সার্ভার আপডেট হতে একটু সময় লাগে তাই ৩ মিনিট কমপক্ষে অপেক্ষা করবেন।







Comments

Post a Comment

Popular posts from this blog

Page 404 Not Found After Reloading React Application that is hosted in Firebase

White Blank Screen Issue After Deploying React Application in Firebase