<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mark Oliver</title>
    <description>The latest articles on DEV Community by Mark Oliver (@micboliver).</description>
    <link>https://dev.to/micboliver</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1372876%2F89b76c39-517b-499b-b7dc-4879bc6c90f8.png</url>
      <title>DEV Community: Mark Oliver</title>
      <link>https://dev.to/micboliver</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/micboliver"/>
    <language>en</language>
    <item>
      <title>Different Staging Environments In Azure Static Web Apps</title>
      <dc:creator>Mark Oliver</dc:creator>
      <pubDate>Wed, 02 Jun 2021 00:00:00 +0000</pubDate>
      <link>https://dev.to/micboliver/different-staging-environments-in-azure-static-web-apps-35kj</link>
      <guid>https://dev.to/micboliver/different-staging-environments-in-azure-static-web-apps-35kj</guid>
      <description>&lt;p&gt;I have been trying to get the initial load of my blog posts much &lt;a href="https://blog.markoliver.website/Speeding-Up-The-Initial-Load"&gt;faster&lt;/a&gt;, and during that work, it was annoying me that in order to test certain things like configuration, I had to push my change to production.&lt;br&gt;&lt;br&gt;
Normally I don't mind a push to production, but as I was experimenting I kept breaking things (the change I was making, was an Azure config change, and does not reflect locally).&lt;/p&gt;

&lt;p&gt;This is not ideal.&lt;/p&gt;

&lt;p&gt;In reading some more Azure documentation, I came across a reference to a "staging environment", which is also mentioned in the Free tier of the &lt;a href="https://learn.microsoft.com/en-us/azure/static-web-apps/plans"&gt;Azure Static Web Apps plans&lt;/a&gt; (now it is GA), and it states there are 3 available!&lt;/p&gt;

&lt;p&gt;This finally registered with me, and I went looking for some information on the different staging environments for an Azure Static Web App.&lt;/p&gt;

&lt;p&gt;I have had a look around the MS docs, and cannot find much where this is talked about, but I came across this &lt;a href="https://learn.microsoft.com/en-us/azure/static-web-apps/review-publish-pull-requests"&gt;article&lt;/a&gt; detailing how they work with Github Actions.&lt;/p&gt;

&lt;p&gt;This is amazing!&lt;/p&gt;

&lt;p&gt;For up-to 3 branches created, a different staging environment will be automatically created for you to test!&lt;/p&gt;

&lt;p&gt;Who knew!&lt;/p&gt;

&lt;p&gt;I am not going to recreate the steps here, other than to say, create a branch, create a PR, commit stuff, the PR will get updated by the github action with the Url of the staging env.&lt;/p&gt;

&lt;p&gt;Go read the &lt;a href="https://learn.microsoft.com/en-us/azure/static-web-apps/review-publish-pull-requests"&gt;docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Having now used it, it is seamless within GitHub and means I will no longer break the blog when trialling new ideas!&lt;/p&gt;

&lt;p&gt;Awesome!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/mXnO9IiWWarkI/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/mXnO9IiWWarkI/giphy.gif" alt="Benny from Lego Movie saying Awesome" width="400" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>azurestaticwebapps</category>
      <category>azure</category>
      <category>githubactions</category>
      <category>deployment</category>
    </item>
  </channel>
</rss>
