File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Settings for Backend (on Cloud Run).
2
+ # See https://firebase.google.com/docs/app-hosting/configure#cloud-run.
3
+ runConfig :
4
+ minInstances : 0
5
+ # maxInstances: 100
6
+ # concurrency: 80
7
+ # cpu: 1
8
+ # memoryMiB: 512
9
+
10
+ # Environment variables and secrets.
11
+ # env:
12
+ # Configure environment variables.
13
+ # See https://firebase.google.com/docs/app-hosting/configure#user-defined-environment.
14
+ # - variable: MESSAGE
15
+ # value: Hello world!
16
+ # availability:
17
+ # - BUILD
18
+ # - RUNTIME
19
+
20
+ # Configure secrets
21
+ # See https://firebase.google.com/docs/app-hosting/configure#secret-parameters
22
+ # - variable: API_KEY
23
+ # secret: myApiKeySecret
Original file line number Diff line number Diff line change
1
+ # Settings for Backend (on Cloud Run).
2
+ # See https://firebase.google.com/docs/app-hosting/configure#cloud-run.
3
+ runConfig :
4
+ minInstances : 0
5
+ # maxInstances: 100
6
+ # concurrency: 80
7
+ # cpu: 1
8
+ # memoryMiB: 512
9
+
10
+ # Environment variables and secrets.
11
+ env :
12
+ # Configure environment variables.
13
+ # See https://firebase.google.com/docs/app-hosting/configure#user-defined-environment.
14
+ - variable : MESSAGE
15
+ value : Hello world!
16
+ availability :
17
+ - BUILD
18
+ - RUNTIME
19
+
20
+ # Configure secrets
21
+ # See https://firebase.google.com/docs/app-hosting/configure#secret-parameters
22
+ # - variable: API_KEY
23
+ # secret: myApiKeySecret
Original file line number Diff line number Diff line change 1
1
import Link from "next/link" ;
2
2
3
3
export default function Home ( ) {
4
+ const message = process . env [ "MESSAGE" ] || "Hello!" ;
4
5
return (
5
6
< main className = "content" >
6
7
< h1 className = "heading" > Next.js on Firebase App Hosting</ h1 >
8
+ < p > { message } </ p >
7
9
8
10
< section className = "features" >
9
11
< article className = "card" >
You can’t perform that action at this time.
0 commit comments