storytellurx-v1/mf.toml
Elias Rhouzlane 75c3c9cefb build: runtimeRootURL follows RSC_BUILD_BASE_URL, the platform that runs the app says where it runs
dev.ts pinned file:///app/src/, Deno Deploy's run path. MF runs the app at /app, so the module map named
paths that do not exist there. RSC_BUILD_BASE_URL wins when set, the default is unchanged.

Claude-Session: https://claude.ai/code/session_01SMfX9gSZ3LVkJ3EJP8NaW6
2026-10-24 19:03:41 +02:00

27 lines
690 B
TOML

app = "storytellurx"
image = "docker.io/denoland/deno:debian-2.9.7@sha256:fa335acdf6b72106eda2cb6a8cb5f4187e7630e357467489db4b2e7352d5e432"
[build]
command = '''
set -eu
export DENO_DIR="$PWD/.deno"
deno install
RSC_BUILD_BASE_URL=file:///app/ deno run --env -A --conditions=react-server dev.ts build
'''
output = "."
cache = ["/home/build/.cache/deno"]
memory_mib = 4096
cpus = 2
timeout_s = 900
scratch_mib = 4096
[run]
command = ["env", "DENO_DIR=/app/.deno", "deno", "serve", "--host", "0.0.0.0", "--port", "8000", "--env", "-A", "--conditions=react-server", "main.ts"]
[runtime]
memory_mib = 256
scratch_mib = 64
cpu_percent = 100
concurrent = 64
idle_minutes = 5
health_path = "/"