15 lines
277 B
Bash
Executable File
15 lines
277 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Building TypeScript..."
|
|
npm run build
|
|
|
|
echo "Deploying function to Firebase..."
|
|
gcloud functions deploy api \
|
|
--gen2 \
|
|
--runtime nodejs20 \
|
|
--region us-central1 \
|
|
--source . \
|
|
--entry-point api \
|
|
--trigger-http \
|
|
--allow-unauthenticated |