Creating a Persistent Test Env

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

Video Tutorial

Setup Test CDN ( optional )

Create a second new site in Netlify

Connect to the same repo, with these settings;

SettingValueNotes

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

Test it

e.g. https://mysite-test.netlify.app/index.js

Update your Webflow Script

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

Make certain to adjust the prod and test URLs accordingly.

<!-- 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> 

Last updated