Skip to content

Conversation

@OtterleyW
Copy link
Contributor

@OtterleyW OtterleyW commented Jan 16, 2026

Implement CLI changes to stage asset files before pushing. Currently, our stage API endpoint supports staging only image files. On the CLI side, we skip staging for .json files; for all other asset types, we rely on the API to return an error if the file type is not supported.

(Internal use)

@OtterleyW OtterleyW force-pushed the use-staging-endpoint branch from 6066a0c to 300a395 Compare January 19, 2026 11:52
@OtterleyW OtterleyW force-pushed the use-staging-endpoint branch from 300a395 to a1d5bc5 Compare January 19, 2026 12:38
@OtterleyW OtterleyW requested a review from rap1ds January 19, 2026 12:50
@OtterleyW OtterleyW added the Pending review Pending review label Jan 19, 2026
(.append form-data (str "staging-id-" i) (str staging-id)))
(when (and (not staging-id) (or data-raw full-path))
(when-let [payload (or data-raw
(when full-path
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When do we end up here?

;; Node's form-data rejects cljs-node-io streams (DelayedStream wrapper)
;; so we need to convert assets into Buffers/strings before appending them.
binary (or data-raw
(when full-path
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to add this now? Didn't we have file uploading working already without this?

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

Labels

Pending review Pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants