mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
Ref https://github.com/webstudio-is/webstudio/issues/2532 Here remix route params are adapted to URLPattern format and passed to generate page component as prop. For this added 2 remix specific utilities - convert subset of url pattern to remix route - generate utility to adapt remix params to URLPattern params for example for `/*` `params['*']` is replaced with `params[0]` and for `/:slug*` `params['*']` is replaced with `params['slug']`
Webstudio SDK
Webstudio SDK is a TypeScript API that lets you use your Webstudio site or some components in your custom codebase or just render a complete Remix Document. It is currently under development, but feel free to play with the the current landing site