modules = ["nodejs-20", "web", "python-3.11", "postgresql-16"]
run = "npm run dev"
hidden = [".config", ".git", "generated-icon.png", "node_modules", "dist"]

[nix]
channel = "stable-24_05"
packages = ["imagemagick", "jdk17", "expect"]

[deployment]
deploymentTarget = "autoscale"
build = ["npm", "run", "build"]
run = ["sh", "-c", "NODE_ENV=production node dist/index.js"]

[env]
PORT = "5000"

[agent]
integrations = ["javascript_sendgrid:1.0.0", "javascript_database:1.0.0"]

[workflows]
runButton = "Project"

[[workflows.workflow]]
name = "Project"
mode = "parallel"
author = "agent"

[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Start application"

[[workflows.workflow]]
name = "Start application"
author = "agent"

[[workflows.workflow.tasks]]
task = "shell.exec"
args = "npm run dev"
waitForPort = 5000

[[ports]]
localPort = 5000
externalPort = 80

[userenv]

[userenv.shared]
VAPID_PUBLIC_KEY = "BIciI35ELG1CcSkpcrguGVsRYn26iqyE1Gatisjo2gKT7q5eGkMzp1xMiRS_Ded2T5EcJzisorvxPKWuyPna894"
VAPID_PRIVATE_KEY = "C45jDHzSUc2criqL8ccPwZYXtqCMLujMdZ6I0nh4qGY"
PUSHY_API_KEY = "8954cb06931b4d6bf519add9cd22f2b4c02780eb090cd8c3244013f94e8b966d"

[postMerge]
path = "scripts/post-merge.sh"
timeoutMs = 20000
