> ## Documentation Index
> Fetch the complete documentation index at: https://docs.go.gbgplc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to update modules in GBG GO

> Apply the latest module versions to your journeys in GBG GO and publish updates from Preview to Production.

export const VersionWarningBanner = () => {
  const [latestUrl, setLatestUrl] = useState(null);
  useEffect(() => {
    if (typeof window === "undefined") return;
    const {pathname, hash, search} = window.location;
    if (!pathname.includes("/go-v1/")) return;
    setLatestUrl(`${pathname.replace("/go-v1/", "/go-v2/")}${search}${hash}`);
  }, []);
  if (!latestUrl) return null;
  return <div className="not-prose my-6 rounded-xl border border-amber-500/30 bg-amber-500/10 px-4 py-3 text-sm text-gray-800 dark:text-gray-100">
      ⚠️ You are viewing the <strong>GBG GO v1</strong> documentation.
      <a href={latestUrl} className="ml-2 font-medium underline text-amber-700 dark:text-amber-400 hover:text-amber-800 dark:hover:text-amber-300">
        View the latest version (v2) →
      </a>
    </div>;
};

<VersionWarningBanner />

When module versions are updated in the platform, journeys that use those modules need to be updated to use the latest versions. The **Update Modules** action applies the latest module versions to a journey's Preview environment.

<Note>
  If you have unpublished changes in Preview, publish them first. Unpublished changes are lost during the update process.
</Note>

## Update modules in Preview

1. Open the journey that contains the modules you want to update.
2. Click **Dashboard** in the left sidebar. In the Environments table, locate the Preview row.
3. Click the **Actions** list on the Preview row.
4. Select **Update Modules**. A confirmation dialog is displayed.
5. Click **Apply updates**.

After the update completes, one of the following messages is displayed:

| Message                      | Description                                                              |
| ---------------------------- | ------------------------------------------------------------------------ |
| Modules updated successfully | The latest module versions have been applied to the Preview environment. |
| No modules to update         | All modules are already up to date.                                      |

The Preview environment automatically refreshes to reflect the changes.
