File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1+ - Check that billing is enabled and move App Hosting next to Hosting in init list (#7871 ).
12- Fix rollouts: create to handle backend regionality & other fixes. (#7862 )
23- Fixed Next.js issue with PPR routes not rendering correctly. (#7625 )
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ let choices: {
4545 name : "Functions: Configure a Cloud Functions directory and its files" ,
4646 checked : false ,
4747 } ,
48+ {
49+ value : "apphosting" ,
50+ name : "App Hosting: Configure an apphosting.yaml file for App Hosting" ,
51+ checked : false ,
52+ hidden : false ,
53+ } ,
4854 {
4955 value : "hosting" ,
5056 name : "Hosting: Configure files for Firebase Hosting and (optionally) set up GitHub Action deploys" ,
@@ -87,12 +93,6 @@ let choices: {
8793 checked : false ,
8894 hidden : true ,
8995 } ,
90- {
91- value : "apphosting" ,
92- name : "App Hosting: Configure an apphosting.yaml file for App Hosting" ,
93- checked : false ,
94- hidden : false ,
95- } ,
9696] ;
9797
9898if ( isEnabled ( "genkit" ) ) {
Original file line number Diff line number Diff line change @@ -2,13 +2,16 @@ import * as clc from "colorette";
22import * as utils from "../../utils" ;
33import { Config } from "../../config" ;
44import { readTemplateSync } from "../../templates" ;
5+ import { checkBillingEnabled } from "../../gcp/cloudbilling" ;
56
67const APPHOSTING_YAML_TEMPLATE = readTemplateSync ( "init/apphosting/apphosting.yaml" ) ;
78
89/**
910 * Set up an apphosting.yaml file for a new App Hosting project.
1011 */
1112export async function doSetup ( setup : any , config : Config ) : Promise < void > {
13+ await checkBillingEnabled ( setup . projectId ) ;
1214 utils . logBullet ( "Writing default settings to " + clc . bold ( "apphosting.yaml" ) + "..." ) ;
1315 await config . askWriteProjectFile ( "apphosting.yaml" , APPHOSTING_YAML_TEMPLATE ) ;
16+ utils . logSuccess ( "Create a new App Hosting backend with `firebase apphosting:backends:create`" ) ;
1417}
You can’t perform that action at this time.
0 commit comments