Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.14 KB

README.md

File metadata and controls

19 lines (13 loc) · 1.14 KB

MongoDB.design

license Build Status

This repository houses the NextJS application for mongoDB.design, the public documentation website for MongoDB's Leafygreen UI Library.

Environment Variables

The Contentstack tokens can be found under Settings > Tokens > Delivery Tokens.

Running with linked packages

  1. Run yarn install
  2. If the package you want to link to has not been published yet, create an empty folder inside node_modules/@leafygreen-ui/ with the name of the unpublished package you want to link to. E.g. node_modules/@leafygreen-ui/<unpublished-package-name>
  3. From leafygreen-ui directory, run yarn run link <path/to/design>
  4. Update next.config.ts to build linked files
    • Change line 76 to: const LGModuleRegex = /(.+(node_modules\/@leafygreen-ui))|(.+(leafygreen-ui\/packages))/g;
  5. Run the dev server: yarn dev