Skip to content

Handle "local file loading" on tscircuit.com for static assets (glb, kicad_mod, etc. files) #1674

Description

@seveibar
  • Add projectConfig as RunFrame prop
  • Override projectConfig to point to a url that serves static files following github convention https://tscircuit.com/author/project/blob/main/file.glb
  • Set up vite config to serve those static files
  • Set up api.tscircuit.com/tscircuit.com config on production to serve static files
  • Make sure compile.tscircuit.com/api.tscircuit.com uses the appropriate projectBaseUrl for each release

Stage 2

  • Test that a glb file can be loaded on tscircuit.com's editor
  • Introduce some kind of blob url system in eval via a new configuration flag, or an eval option like "getStaticAssetUrl" that can return blob urls if needed

CC @imrishabh18 this is a ton of work but allows static local assets

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions