Using Tunnel with Coherence
<script>
tag.
<TunnelToolbar />
component to your app<TunnelToolbar />
component in your app. Developers usually only render the <TunnelToolbar />
component in your app when it is running in a Coherence Branch Preview environment.The <TunnelToolbar />
component requires a projectId
prop and a branch
prop.projectId
is the ID of your Tunnel project. You can find your project ID in the Tunnel Dashboard.branch
is the branch name of the Coherence Branch Preview. Coherence automatically injects the COHERENCE_ENVIRONMENT_NAME
environment variable, which you can pass directly to the <TunnelToolbar />
component.