mirror of
https://github.com/FranP-code/inbox-negotiator.git
synced 2025-10-13 00:42:26 +00:00
Migrate to pnpm and add Appwrite function auto-deployment
Co-authored-by: FranP-code <76450203+FranP-code@users.noreply.github.com>
This commit is contained in:
85
appwrite/appwrite.json
Normal file
85
appwrite/appwrite.json
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"projectId": "$APPWRITE_PROJECT_ID",
|
||||
"projectName": "InboxNegotiator",
|
||||
"functions": [
|
||||
{
|
||||
"name": "negotiate",
|
||||
"functionId": "negotiate",
|
||||
"runtime": "node-18.0",
|
||||
"entrypoint": "src/main.js",
|
||||
"commands": "npm install",
|
||||
"timeout": 15,
|
||||
"enabled": true,
|
||||
"execute": ["any"],
|
||||
"events": [],
|
||||
"schedule": "",
|
||||
"env": {
|
||||
"GOOGLE_AI_API_KEY": "$GOOGLE_AI_API_KEY",
|
||||
"APPWRITE_DATABASE_ID": "$APPWRITE_DATABASE_ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "approve-debt",
|
||||
"functionId": "approve-debt",
|
||||
"runtime": "node-18.0",
|
||||
"entrypoint": "src/main.js",
|
||||
"commands": "npm install",
|
||||
"timeout": 15,
|
||||
"enabled": true,
|
||||
"execute": ["any"],
|
||||
"events": [],
|
||||
"schedule": "",
|
||||
"env": {
|
||||
"APPWRITE_DATABASE_ID": "$APPWRITE_DATABASE_ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "send-email",
|
||||
"functionId": "send-email",
|
||||
"runtime": "node-18.0",
|
||||
"entrypoint": "src/main.js",
|
||||
"commands": "npm install",
|
||||
"timeout": 15,
|
||||
"enabled": true,
|
||||
"execute": ["any"],
|
||||
"events": [],
|
||||
"schedule": "",
|
||||
"env": {
|
||||
"POSTMARK_SERVER_TOKEN": "$POSTMARK_SERVER_TOKEN",
|
||||
"APPWRITE_DATABASE_ID": "$APPWRITE_DATABASE_ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "analyze-response",
|
||||
"functionId": "analyze-response",
|
||||
"runtime": "node-18.0",
|
||||
"entrypoint": "src/main.js",
|
||||
"commands": "npm install",
|
||||
"timeout": 15,
|
||||
"enabled": true,
|
||||
"execute": ["any"],
|
||||
"events": [],
|
||||
"schedule": "",
|
||||
"env": {
|
||||
"GOOGLE_AI_API_KEY": "$GOOGLE_AI_API_KEY",
|
||||
"APPWRITE_DATABASE_ID": "$APPWRITE_DATABASE_ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "test-extraction",
|
||||
"functionId": "test-extraction",
|
||||
"runtime": "node-18.0",
|
||||
"entrypoint": "src/main.js",
|
||||
"commands": "npm install",
|
||||
"timeout": 15,
|
||||
"enabled": true,
|
||||
"execute": ["any"],
|
||||
"events": [],
|
||||
"schedule": "",
|
||||
"env": {
|
||||
"GOOGLE_AI_API_KEY": "$GOOGLE_AI_API_KEY",
|
||||
"APPWRITE_DATABASE_ID": "$APPWRITE_DATABASE_ID"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user