diff --git a/starters/angular/basic/apphosting.yaml b/starters/angular/basic/apphosting.yaml new file mode 100644 index 00000000..6d860d1b --- /dev/null +++ b/starters/angular/basic/apphosting.yaml @@ -0,0 +1,23 @@ +# Settings for Backend (on Cloud Run). +# See https://firebase.google.com/docs/app-hosting/configure#cloud-run. +runConfig: + minInstances: 0 + # maxInstances: 100 + # concurrency: 80 + # cpu: 1 + # memoryMiB: 512 + +# Environment variables and secrets. +# env: + # Configure environment variables. + # See https://firebase.google.com/docs/app-hosting/configure#user-defined-environment. + # - variable: MESSAGE + # value: Hello world! + # availability: + # - BUILD + # - RUNTIME + + # Configure secrets + # See https://firebase.google.com/docs/app-hosting/configure#secret-parameters + # - variable: API_KEY + # secret: myApiKeySecret \ No newline at end of file diff --git a/starters/nextjs/basic/apphosting.yaml b/starters/nextjs/basic/apphosting.yaml new file mode 100644 index 00000000..4362de93 --- /dev/null +++ b/starters/nextjs/basic/apphosting.yaml @@ -0,0 +1,23 @@ +# Settings for Backend (on Cloud Run). +# See https://firebase.google.com/docs/app-hosting/configure#cloud-run. +runConfig: + minInstances: 0 + # maxInstances: 100 + # concurrency: 80 + # cpu: 1 + # memoryMiB: 512 + +# Environment variables and secrets. +env: + # Configure environment variables. + # See https://firebase.google.com/docs/app-hosting/configure#user-defined-environment. + - variable: MESSAGE + value: Hello world! + availability: + - BUILD + - RUNTIME + + # Configure secrets + # See https://firebase.google.com/docs/app-hosting/configure#secret-parameters + # - variable: API_KEY + # secret: myApiKeySecret \ No newline at end of file diff --git a/starters/nextjs/basic/src/app/page.tsx b/starters/nextjs/basic/src/app/page.tsx index ea52eada..89bf06b8 100644 --- a/starters/nextjs/basic/src/app/page.tsx +++ b/starters/nextjs/basic/src/app/page.tsx @@ -1,9 +1,11 @@ import Link from "next/link"; export default function Home() { + const message = process.env["MESSAGE"] || "Hello!"; return (

Next.js on Firebase App Hosting

+

{message}