Skip to content

docs: warn about CWD-relative SUPERMEMORY_DATA_DIR default (#1420) - #1607

Open
Adityakk9031 wants to merge 1 commit into
supermemoryai:mainfrom
Adityakk9031:fix/issue-1420-cwd-data-dir-warning
Open

docs: warn about CWD-relative SUPERMEMORY_DATA_DIR default (#1420)#1607
Adityakk9031 wants to merge 1 commit into
supermemoryai:mainfrom
Adityakk9031:fix/issue-1420-cwd-data-dir-warning

Conversation

@Adityakk9031

Copy link
Copy Markdown
Contributor

Resolves #1420.

Description

Adds a warning block to the self-hosted configuration documentation, advising users to always set SUPERMEMORY_DATA_DIR to a stable directory path (e.g. ~/.supermemory) to prevent the creation of accidental empty stores.

Root Cause

When SUPERMEMORY_DATA_DIR is left unset, it defaults to ./.supermemory relative to the current working directory ($CWD). If the server is started from different directories (e.g. while cd-ing between repo checkouts or system folders), it silently scaffolds and boots a brand-new, empty store (along with a new API key, auth secret, and downloading models/runtimes again). Nothing in the console output distinguishes a fresh creation from an existing store opening, which leads to confusion and wasted disk space.

Changes

Added a clear Warning block under the configuration parameters table recommending explicit configuration of SUPERMEMORY_DATA_DIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Self-hosted: data dir defaults to $CWD/.supermemory — launching from a different directory silently creates a new empty store (and a new API key)

1 participant