Use a custom domain with Kinde
Build on Kinde
As part of bringing your own code to page designs, you’ll likely need to work with some npm libraries in addition to the @kinde/infrastructure package.
Kinde supports a handful of carefully selected libraries from npm. These include:
@kinde/infrastructure
This is Kinde’s package that supplies helpers and methods to give you the best possible authoring experience of Kinde pages and workflows.
For server side React templates:
react and react-dom/server.browser
Pages render with React 18. If your kinde.json file enables the npm integration, the react and react-dom versions in your package.json must be 18.x. With any other major version, your pages compile but do not deploy. This applies even if you enabled the npm integration for workflows, because one kinde.json covers everything synced from the repo.
For Liquid templates:
liquidjs
Attempting to import unsupported packages into your runtime code will result in your deployment failing.
Dev dependencies (e.g packages used for linting, tests and build steps) can be used, as they do not affect the Kinde runtime environment. Any code dependent on these packages should be prebuilt before deploying to Kinde.