-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgenezio.yaml
57 lines (56 loc) · 1.99 KB
/
genezio.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# The name of the project.
name: express-mongo-starter
# The region where the project is deployed. Available regions: us-east-1, eu-central-1
region: us-east-1
# The version of the Genezio YAML configuration to parse.
yamlVersion: 2
backend:
# The root directory of the backend.
path: ./
# Information about the backend's programming language.
language:
# The name of the programming language.
name: js
# The package manager used by the backend.
packageManager: npm
# Information about the backend's functions.
functions:
# The name (label) of the function.
- name: express-mongo-starter
# The path to the function's code.
path: ./
# The name of the function handler
handler: handler
# The entry point for the function.
entry: app.mjs
# The compatibility of the function handler.
type: httpServer
# Scripts are running in the specified `path` directory.
scripts:
# List of scripts to run before deploying the frontend.
deploy: npm install
# List of scripts that build your frontend before deployment. It should populate the specified `publish` directory.
local: npm install
# Information about the backend's services.
services:
# The name of the service.
databases:
# The name of the database.
- name: my-mongo-db
# The region where the database is deployed.
region: us-east-1
type: mongo-atlas
frontend:
# The folder where the frontend scripts will run.
path: ./frontend
# Specifies information about the SDK generation. If not specified, the SDK will not be generated for this frontend.
# The directory that will be published to the CDN. It is relative to the `path` directory.
publish: ./dist
# Environment variables that will be injected into the frontend.
scripts:
# List of scripts to run before deploying the frontend.
deploy: npm install
build: npm run build
start: npm run dev
environment:
VITE_API_URL: ${{ backend.functions.express-mongo-starter.url }}