# Creating a Persistent Test Env

If you are working with Sygnal and using Sygnal's DevProxy, we can also setup a Persistent TEST Environment.&#x20;

## Video Tutorial

{% embed url="<https://www.loom.com/share/d5f8ae18a98f46a5b6bad1d9522c641b>" %}

## Setup Test CDN ( optional )

Create a second new site in Netlify

Connect to the same repo, with these settings;&#x20;

| Setting             | Value              | Notes                                                                       |
| ------------------- | ------------------ | --------------------------------------------------------------------------- |
| Site name           | e.g. `mysite-test` | Our convention is to use the same site name as before, affixed with `-test` |
| Branch to deploy    | `dev`              | <- note difference                                                          |
| Base directory      | ( blank )          |                                                                             |
| Build command       | `npm run build`    |                                                                             |
| Publish directory   | `dist`             |                                                                             |
| Functions directory | ( blank )          |                                                                             |

Deploy&#x20;

Test it

e.g. [https://mysite-test.netlify.app/index.js](https://nanistori.netlify.app/index.js)

## Update your Webflow Script

In site-wide before-head, add your script references;

{% hint style="info" %}
Make certain to adjust the prod and test URLs accordingly.&#x20;
{% endhint %}

```html
<!-- Site Engine (SSE)
     https://engine.sygnal.com
--> 
<script 
  src="https://mysite.netlify.app/index.js"
  test-src="https://mysite-test.netlify.app/index.js"
  dev-src="http://127.0.0.1:3000/dist/index.js"
  ></script> 
```
