/examples-vite-monorepo

A demo of a PNPM workspace monorepo which contains a Vite React app and a Speakeasy SDK

Primary LanguageTypeScriptMIT LicenseMIT

Speakeasy Monorepo Example

This repo demonstrates how to use Speakeasy SDKs in a monorepo containing a Vite app. This is a worked example of the guidance found on the following page relating to linked dependencies:

https://vitejs.dev/guide/dep-pre-bundling

The SDK is generated in ./packages/monorepo-sdk and the Vite app is in ./apps/console. Take a look at the vite.config.js for the required config options.

Running

pnpm i
pnpm dev

Visit the URL and note how the SDK is used to fetch a UUID.