Customize designs with code
Design
To enable your custom code to override Kinde page design, you need to set up and connect a git repo for the design files. You must also be using a custom domain to run your custom code with Kinde.
If you are on the Kinde Plus or Scale plan, you can enable a code preview before you deploy new code to be live. This is helpful for checking the design before making it public in your production environment. If you have a free or Pro plan, we recommend you preview designs in a non-production environment before syncing in production.
Your directory structure should follow the following structure.
myApp/ ├── kindeSrc/ │ └── environment/ │ └── pages/ │ └── (kinde)/ │ └── <route>/ │ └── page.tsx ├── package.json └── kinde.json
In the above example, <route>
is used to map your code to a rendered page in Kinde. For example kindeSrc/environment/pages/(kinde)/(register)/page.tsx
will map to the register / sign up page in the authentication flow.
The home page of your Kinde dashboard shows a code alert status. You can see immediately if there are any concerns with your code. Select View code status to see if the issue is: