fix: upgrade to Node 22 — obsidian-headless requires navigator, WebSocket, fetch globals only available in Node 22+

This commit is contained in:
hermes
2026-04-23 14:15:55 +00:00
parent 1b3fd5f7d7
commit b8ac794479
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:20-slim FROM node:22-slim
# Install system dependencies # Install system dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
+1 -3
View File
@@ -8,12 +8,10 @@ services:
volumes: volumes:
# Map your local host folder to the container's vault folder # Map your local host folder to the container's vault folder
- ${VAULT_HOST_PATH}:/vault - ${VAULT_HOST_PATH}:/vault
# Persist the sync session and config so you don't have to 'ob login' on every restart # Persist the sync session and config so you don't have to 'ob login' on every restart
- ./config:/root/.config/obsidian-headless - ./config:/root/.config/obsidian-headless
env_file: env_file:
- .env - .env
environment: environment:
- TZ=UTC - TZ=UTC
# Enable the experimental WebSocket global required by obsidian-headless
- NODE_OPTIONS=--experimental-websocket