supermemory/apps/docs/scripts/dev.sh
sohamd22 3b84713097 docs(api): add V3/V4 to V5 migration guide (#1691)
Document every migrated workflow, request and response change, typed-filter conversion, verification strategy, and rollout step so agents can upgrade integrations deterministically.
2026-10-06 16:48:36 +00:00

17 lines
578 B
Bash

#!/usr/bin/env bash
set -euo pipefail
docs_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
docs_port="${PORT:-3003}"
mintlify_args=(dev --no-open --port "$docs_port")
printf -v docs_dir_escaped "%q" "$docs_dir"
printf -v mintlify_args_escaped " %q" "${mintlify_args[@]}"
# Run outside the monorepo so npx does not pick up Mintlify's Bun-installed
# dependency tree, which is incompatible with its Node-based schema compiler.
cd /tmp
exec npx --yes \
--package node@22 \
--package mintlify@latest \
--call "cd $docs_dir_escaped && mintlify$mintlify_args_escaped"