Skip to content

fix(studio): export from editor source without ?script= - #679

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

fix(studio): export from editor source without ?script=#679
w1ne merged 1 commit into
developfrom
fix/studio-export-without-script

Conversation

@w1ne

@w1ne w1ne commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Export tab POSTs current editor source to /__kernelcad/export (no ?script= required)
  • Vite middleware accepts POST { source } while keeping GET ?script= for deep-links
  • Hosted app routes export to the API base even when unsigned-in

Test plan

  • Open Studio without ?script=, recompute a model, Export → STL downloads
  • Edit code, export again — file reflects live edits
  • DXF still disabled without planar faces
  • npx vitest run src/studio/__tests__/tabs/ExportTab.test.tsx

POST current editor code to /__kernelcad/export so STL/STEP/DXF/3MF/GLB
work in browser Studio without a curated script deep-link, and reflect
live edits. Vite middleware accepts POST { source }; GET ?script= remains.
@w1ne
w1ne merged commit acdfca9 into develop Jul 28, 2026
13 checks passed
@w1ne
w1ne deleted the fix/studio-export-without-script branch July 28, 2026 15:24
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