Create a custom server script to serve files with explicit no-cache headers, resolving issues where the preview iframe displayed stale content due to browser caching. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f5797e65-2210-4d2e-bf70-278d8a0098c1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 2ef8619a-6329-44ec-aa16-6d651c828315 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2a2c58da-54a0-4c86-8ad0-3b93439f70de/f5797e65-2210-4d2e-bf70-278d8a0098c1/D15BHvH Replit-Helium-Checkpoint-Created: true
33 lines
506 B
Plaintext
33 lines
506 B
Plaintext
modules = ["python-3.11"]
|
|
|
|
[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.metadata]
|
|
outputType = "webview"
|
|
|
|
[[workflows.workflow.tasks]]
|
|
task = "shell.exec"
|
|
args = "python3 serve.py"
|
|
waitForPort = 5000
|
|
|
|
[[ports]]
|
|
localPort = 5000
|
|
externalPort = 80
|
|
|
|
[agent]
|
|
expertMode = true
|