modules = ["nodejs-20", "web", "postgresql-16"]
[agent]
expertMode = true
integrations = ["javascript_gemini_ai_integrations:1.0.0"]

[nix]
channel = "stable-25_05"

[workflows]
runButton = "Project"

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

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

[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Discord Bot"

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

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

[workflows.workflow.metadata]
outputType = "webview"

[[workflows.workflow]]
name = "Discord Bot"
author = "agent"

[workflows.workflow.metadata]
outputType = "console"

[[workflows.workflow.tasks]]
task = "shell.exec"
args = "cd discord-bot && npm install && npm start"

[[ports]]
localPort = 5000
externalPort = 80

[[ports]]
localPort = 8044
externalPort = 3003

[[ports]]
localPort = 38557
externalPort = 3000

[[ports]]
localPort = 40437
externalPort = 3001

[deployment]
deploymentTarget = "autoscale"
run = ["node", "dist/server/production.mjs"]
build = ["npm", "run", "build"]

[userenv]

[userenv.shared]
DISCORD_MAIN_CHAT_CHANNELS = "1425114041021497454"
