Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .cursor/cloud-agent-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")/.."

export NODE_OPTIONS="${NODE_OPTIONS:---max-old-space-size=4096}"
export DISABLE_RSPACK_INCREMENTAL="${DISABLE_RSPACK_INCREMENTAL:-true}"

# Node 22+ is required (see package.json engines and .nvmrc).
if ! command -v node >/dev/null 2>&1; then
echo "Node.js is required but not installed." >&2
exit 1
fi

node_major="$(node -p "process.versions.node.split('.')[0]")"
if [[ "${node_major}" -lt 22 ]]; then
echo "Node.js >= 22 is required (found $(node --version))." >&2
exit 1
fi

# package-lock.json pins darwin-arm64 @rspack bindings; use npm install on Linux.
if [[ ! -d node_modules ]]; then
npm install
else
npm install --prefer-offline --no-audit --no-fund
fi

npm run fetch-docs-oss

echo "Install complete."
18 changes: 18 additions & 0 deletions .cursor/environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Seqera Docs",
"user": "ubuntu",
"install": "bash .cursor/cloud-agent-install.sh",
"ports": [
{
"name": "Docusaurus dev server",
"port": 3001
}
],
"terminals": [
{
"name": "docs-dev",
"command": "export NODE_OPTIONS=\"--max-old-space-size=4096\" DISABLE_RSPACK_INCREMENTAL=true && cd /workspace && npm run start -- --port 3001 --host 0.0.0.0",
"description": "Seqera Docs Docusaurus dev server (http://localhost:3001). Uses memory limits from netlify.toml to avoid OOM."
}
]
}
Loading