close
Skip to content

Preview sites in WordPress Studio

With WordPress Studio, you can share your work with preview sites. These preview sites are powered by WordPress.com on a temporary domain (wp.build), and they allow you to share snapshots of your local sites with clients or team members. 

You can create up to ten preview sites at a time per WordPress.com account, and you can view the total number of preview sites you have associated with your account by clicking on your avatar within the WordPress Studio app.

While preview sites are intended for sharing with clients and gathering early feedback for up to seven days, a hosting plan is required to make your site permanently accessible. Use the Studio Sync or Import/Export features to connect your Studio site to a hosting plan.

Create a preview site

To create a preview site: 

  1. Select the local site within the Studio.
  2. Click on the Previews tab.
  3. Log in to WordPress.com if you haven’t already.
  4. Click on the Create preview site button.
A screenshot depicting the Previews tab in the Studio app.

Your preview site should be ready to view in a few seconds, and it will be available to access publicly for seven days.

Rename a preview site

You can create multiple preview sites per Studio site. To differentiate between them you can rename them inside Studio. To do so follow these steps:

  1. Select the local site within the Studio.
  2. Click on the Previews tab.
  3. Click the vertical ellipsis (⋮) in the row of your preview site.
  4. Click on the Rename button.
  5. Enter a new name.
  6. Click on the Save button.
A screenshot depicting the list of preview sites and the popover that allows you to rename each site.

Your preview site will display that name in the list of preview sites, while your remote preview site name will remain unchanged.

Delete a preview site

To delete a preview site: 

  1. Select the local site within the Studio.
  2. Click on the Previews tab.
  3. Click the vertical ellipsis (⋮) in the row of your preview site.
  4. Click on the Delete button.

Your preview site will be deleted and removed from the list.

Update your preview site

By design, preview sites are generated as one-time “snapshots” of your work. That said, you may synchronize local site changes with your preview site: 

  1. Select the local site within Studio.
  2. Click on the Previews tab.
  3. Click the vertical ellipsis (⋮) in the row of your preview site.
  4. Click Update and confirm.

Your preview site will be updated with the local changes in a few seconds. This will also reset the preview site expiration date back to seven days.

Exclude files with .deployignore

When creating or updating a preview site, Studio uploads the contents of your site’s wp-content directory. If your site contains files you don’t want included — such as build artifacts, vendor dependencies, or large media folders — you can create a .deployignore file at the root of your site directory to exclude them.

The .deployignore file uses the same pattern syntax as .gitignore. For example:

# Exclude vendor dependencies
wp-content/plugins/my-plugin/vendor

# Exclude all log files
*.log

# Exclude old uploads
wp-content/uploads/2024

# Exclude a specific plugin
wp-content/plugins/wordpress-seo

You can also use negation patterns to re-include specific items:

# Exclude vendor, but keep important-lib
wp-content/plugins/my-plugin/vendor/*
!wp-content/plugins/my-plugin/vendor/important-lib

Note: Patterns are relative to the site root directory, not to wp-content. The following directories are excluded by default, even without a .deployignore file: .git, node_modules, .DS_Store, and Thumbs.db.

Preview site expiration

Preview sites are temporary, and each preview site will be automatically deleted after seven days from the last update. This feature ensures that preview environments are used for short-term feedback and review purposes.

Delete all preview sites

To quickly delete all of your preview sites within Studio:

  1. Click on your avatar within Studio.
  2. Click the vertical ellipsis (⋮) next to your preview site count.
  3. Click the Delete all preview sites button.
A screenshot depicting the modal that allows you to delete all preview sites in Studio.

Last updated: April 16, 2026