Skip to content

fix(studio): export via server with project assets - #680

Merged
w1ne merged 1 commit into
developfrom
fix/studio-export-project-assets
Jul 28, 2026
Merged

fix(studio): export via server with project assets#680
w1ne merged 1 commit into
developfrom
fix/studio-export-project-assets

Conversation

@w1ne

@w1ne w1ne commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

Header STL/STEP used the legacy worker (new Function without async → await errors). Export also POSTed bare source, so production resolved lib.fromSTEP('./2.0u_blank_costar.stp') to /tmp/... and failed for 3MF/STL.

Changes

  • Shared exportViaServer() for Header + Export tab
  • On /p/<slug>, POST projectSlug + source so the API materializes STEP assets
  • Route modern scripts through node OCCT export (not the v0.1 worker)

Test plan

Header STL/STEP still used the legacy in-browser worker (no async wrap, no
lib.fromSTEP), and Export POSTed bare source so production looked for
/tmp/<step>. Route all Studio exports through /__kernelcad/export and send
projectSlug+source on /p/<slug> so the server materializes complementary STEP.
@w1ne
w1ne merged commit c52a50f into develop Jul 28, 2026
13 checks passed
@w1ne
w1ne deleted the fix/studio-export-project-assets branch July 28, 2026 20:11
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.

1 participant