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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version-file: site/package.json
check-latest: true
cache: npm
cache-dependency-path: site/package-lock.json
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- os: macos-15-intel
target: x86_64-apple-darwin
archive: tar.gz
- os: macos-14
- os: macos-15
target: aarch64-apple-darwin
archive: tar.gz
- os: windows-latest
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"private": true,
"engines": { "node": "^26.13.1" }
}
2 changes: 1 addition & 1 deletion scripts/e2e-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ set -eu

image="${OCVM_E2E_IMAGE:-ocvm-e2e:local}"

docker build -f tests/e2e/Dockerfile -t "$image" .
docker build --pull -f tests/e2e/Dockerfile -t "$image" .
docker run --rm "$image"

1 change: 1 addition & 0 deletions site/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26
1 change: 1 addition & 0 deletions site/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
7 changes: 5 additions & 2 deletions site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Production URL: https://ocvm.vercel.app

## Development

Use Node.js 26.x, version 26.13.1 or later. The site manifest defines this range for npm and CI.

```bash
npm ci
npm run dev
Expand All @@ -18,15 +20,16 @@ npm run build
```

The production build uses Nitro's Vercel preset and emits `.vercel/output`.
Vercel selects Node.js 26.x for builds and functions and manages patch updates.

## Docker Verification

```bash
docker run --rm -u "$(id -u):$(id -g)" \
docker run --pull=always --rm -u "$(id -u):$(id -g)" \
-e npm_config_cache=/tmp/npm-cache \
-v "$PWD/..":/work \
-w /work/site \
node:22-bookworm sh -lc "npm ci && npm run build"
node:26-bookworm sh -lc "npm ci && npm run build"
```

## Deploy
Expand Down
1 change: 1 addition & 0 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "ocvm-site",
"private": true,
"type": "module",
"engines": { "node": "^26.13.1" },
"imports": {
"#/*": "./src/*"
},
Expand Down
1 change: 1 addition & 0 deletions site/vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"framework": null,
"git": { "deploymentEnabled": { "chore/node-26-13-1": false } },
"installCommand": "npm ci",
"buildCommand": "npm run build"
}
1 change: 1 addition & 0 deletions site/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config = defineConfig({
plugins: [
nitro({
preset: 'vercel',
vercel: { functions: { runtime: 'nodejs26.x' } },
rollupConfig: { external: [/^@sentry\//] },
}),
tanstackStart(),
Expand Down
10 changes: 4 additions & 6 deletions tests/e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM node:26-bookworm AS node
FROM rust:1-bookworm

RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_26.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
COPY --from=node /usr/local/ /usr/local/
RUN dpkg --compare-versions "$(node -p 'process.versions.node')" ge 26.13.1 \
&& node --version && npm --version

WORKDIR /work
COPY . .
Expand All @@ -13,6 +12,5 @@ ENV OCVM_HOME=/tmp/ocvm-home
ENV OCVM_NPM_PACKAGE=openclaw

RUN cargo build --release --locked
RUN node --version && npm --version

CMD ["./scripts/e2e-npm-openclaw.sh"]
1 change: 1 addition & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"framework": null,
"git": { "deploymentEnabled": { "chore/node-26-13-1": false } },
"installCommand": "cd site && npm ci",
"buildCommand": "cd site && npm run build && rm -rf ../.vercel && cp -R .vercel ../.vercel"
}
Loading