הוספת לחצן 'פתיחה ב-Firebase Studio'
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
עם Firebase Studio, אפשר לפשט את השלבים שמשתמש חדש צריך לבצע כדי להגדיר את סביבת הפיתוח ולהתחיל לעבוד עם בסיס הקוד.
לדוגמה:
אם אתם עובדים בצוות עם תורמים אחרים, אתם יכולים להתאים אישית את הסביבה בדיוק לפרויקט שלכם ואז לבצע קומיט של קובץ ה-.idx/dev.nix
למאגר ה-Git של הפרויקט. כך, כשחבר צוות ייבא את מאגר Git שלכם ב-Firebase Studio, סביבת העבודה החדשה שלו תהיה עם אותה הגדרה בדיוק כמו שלכם, כולל אותם חבילות מערכת, תוספים ל-IDE, סקריפטים להתחלה ועוד.
אם אתם יוצרים מסגרת או ספרייה לשימוש של אחרים, אתם יכולים לכלול קובץ .idx/dev.nix
במאגרי דוגמאות הקוד שלכם, כדי שכאשר משתמש מייבא את הדוגמאות שלכם אל Firebase Studio, הוא יוכל לדלג על הגדרת הסביבה ולנסות מיד את המסגרת שלכם. אתם יכולים גם ליצור תבנית מותאמת אישית משלכם שתשמש את המשתמשים כנקודת התחלה מותאמת אישית עם דעה מגובשת.
אחרי שתהיו מרוצים מההתאמות האישיות של הסביבה, תוכלו להוסיף לתיעוד שלכם, כמו לקובץ README.md
של הפרויקט, לחצן 'פתיחה ב-Firebase Studio' כדי להקל על אחרים לייבא את הפרויקט ל-Firebase Studio.
נקודות כניסה נפוצות של 'פתיחה ב-Firebase Studio'
יש כמה דפוסים של כתובות URL שאפשר להשתמש בהם עבור לחצן 'פתיחה ב-Firebase Studio':
כדי לקשר לזרימת ייבוא מאגר Git עם כתובת URL של מאגר Git שמולאה מראש, משתמשים בתבנית כתובת ה-URL הזו:
https://studio.firebase.google.com/import?url=https://github.com/my-org/my-repo
בשלב הזה, יש תמיכה רק במאגרי GitHub (פרטיים וציבוריים).
כדי לקשר אל תבנית מוגדרת מראש של סביבת עבודה, מחפשים את התבנית הרצויה בדף Templates ב-Firebase Studio ומעתיקים את כתובת ה-URL שלה, שצריכה להיות בפורמט הבא:
https://studio.firebase.google.com/new/gemini
כדי לקשר לתבנית בהתאמה אישית, שמולאה מראש בכתובת ה-URL של התבנית ב-GitHub, צריך להשתמש בתבנית כתובת ה-URL הבאה:
https://studio.firebase.google.com/new?template=https://github.com/my-org/my-template
כדי לפתוח את App Prototyping agent עם הנחיה שמולאה מראש, משתמשים בתבנית כתובת ה-URL הבאה:
https://studio.firebase.google.com/?prototypePrompt=Create an app that transforms sketches into a high-quality photograph with Gemini
הוספת לחצן 'פתיחה ב-Firebase Studio'
מתקינים את Open in Firebase Studio
SDK או משתמשים בכלי הזה כדי ליצור את ה-HTML של לחצן Firebase Studio:
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["With Firebase Studio, you can simplify the steps for someone new to\nyour codebase to set up their development environment and get productive.\n\nFor example:\n\n- If you're **working on a team with other contributors** , you can\n [customize your environment](/docs/studio/customize-workspace)\n precisely for your project and then commit your `.idx/dev.nix` file to\n your project's Git repository. That way, when a teammate imports your\n Git repository in Firebase Studio, their new workspace will have\n the exact same configuration as yours, complete with the same system\n packages, IDE extensions, starter scripts, and more.\n\n- If you're **building a framework or library** for others to use, you\n can include a `.idx/dev.nix` file in your sample code repositories, so\n that when a user imports your samples into Firebase Studio, they\n can skip the environment setup and jump straight into trying out your\n framework. You can even [build your own, custom\n template](/docs/studio/custom-templates) as an opinionated,\n customizable starting point for your users.\n\nAfter you're happy with your environment customizations, you can make it\neven easier for others to import your project into Firebase Studio by\nadding an \"Open in Firebase Studio\" button to your documentation, such\nas your project's `README.md` file.\n\nCommon \"Open in Firebase Studio\" entry points\n\nThere are several URL patterns available for an \"Open in\nFirebase Studio\" button:\n\n- To link to the **import a Git repository** flow, prefilled with your Git\n repository URL, use this URL pattern:\n\n https://studio.firebase.google.com/import?url=https://github.com/my-org/my-repo\n\n At this time, only GitHub repositories are supported (both private and\n public).\n- To link to a **predefined workspace template** , find the template\n you're looking for in the\n [Templates](https://studio.firebase.google.com/templates) page in\n Firebase Studio, and copy its URL, which should follow this URL pattern:\n\n https://studio.firebase.google.com/new/gemini\n\n- To link to a **custom template**, prefilled with your template's GitHub URL,\n use this URL pattern:\n\n https://studio.firebase.google.com/new?template=https://github.com/my-org/my-template\n\n- To open the App Prototyping agent with a pre-filled prompt, use this URL\n pattern:\n\n https://studio.firebase.google.com/?prototypePrompt=Create an app that transforms sketches into a high-quality photograph with Gemini\n\nAdd an \"Open in Firebase Studio\" button\n\nInstall the [Open in Firebase Studio\nSDK](https://www.npmjs.com/package/@firebase-studio/open-sdk) or\nuse this tool to generate the HTML for a Firebase Studio button:"]]