Preview vs. Runtime
Introduction
In yeet, we distinguish between the preview and the runtime of a project.
These two modes represent different contexts and purposes in your development and deployment workflow.
The difference
Preview
The preview mode offers a quick way to see live changes from your project while you are developing.
- After saving your project, preview lets you experience the app without additional editor UI.
- You can click through the app, try out user flows, and validate that components and code snippets behave as expected.
- It is ideal for rapid feedback during development, but it is not your final production environment.
In short: preview is your interactive sandbox for testing how the application feels and behaves.
Runtime
The runtime is how your application is delivered to end users.
- The app is deployed to a server and runs in a real environment.
- Users interact with the runtime version of your app in their day-to-day work.
- While the runtime is live, you can still continue working on the project in yeet without affecting the current production state.
In short: runtime is your production environment, while preview is the development view of the same application.