Using Instant Previews
When using Instant Previews, managing the preview server is done independently from previewing content. To access the preview server controls, navigate to Settings > Previews > Instant Previews.
The Instant Preview server may be in one of several states:
|Disabled||Instant Previews are disabled. Standard Previews will be used instead.|
|Stopped||The preview server is stopped.|
|Starting||The preview server is starting up.|
|Ready||The preview server is running the Build Command|
|Stopping||The preview server is shutting down.|
|Error||The an error occurred while running the preview server.|
Depending on the state of your preview server, several server actions will be available,
|Start||Starts the stopped preview server.|
|Stop||Stops running preview server.|
|Restart||Stops the running server and restarts it immediately.|
|Clear Cache & Restart||Clears the repository and dependency cache before restarting the server.|
Reading the Server Logs
The lifecycle of a preview server contains multiple steps. Each step has a status indicator, name, and some logs.
Don’t panic if you don’t see any steps in your server controls. They won’t appear until you start the server for the first time.
Common preview steps include:
|Loading Repo Files||Imports the site repository and mounts it to the container.|
|Installing Dependencies||Runs the Install Dependencies Command if it was set. Dependencies will be loaded from cache if it exists.|
|Saving Preview Cache||Caches the repository and any installed dependencies.|
|Building Site||Executes the Build Command to start serving your preview.|
Caught a mistake or want to contribute to the docs? Edit this page on Github!