Creating a Persistent Test Env
Last updated
Last updated
If you are working with Sygnal and using Sygnal's DevProxy, we can also setup a Persistent TEST Environment.
Create a second new site in Netlify
Connect to the same repo, with these settings;
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
In site-wide before-head, add your script references;
Make certain to adjust the prod and test URLs accordingly.