<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/atom.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Posts tagged: cloudflare</title>
  <id>https://waylonwalker.com/tags/cloudflare/atom.xml</id>
  <updated>2024-04-09T17:03:51Z</updated>
  <subtitle>All posts with the tag &#34;cloudflare&#34;</subtitle>
  <link href="https://waylonwalker.com/tags/cloudflare/" rel="alternate" type="text/html"></link>
  <link href="https://waylonwalker.com/tags/cloudflare/atom.xml" rel="self" type="application/atom+xml"></link>
  <author>
    <name>Waylon Walker</name>
  </author>
  <generator uri="https://github.com/WaylonWalker/markata-go">markata-go</generator>
  <entry>
    <title>Udating Cloudflare Pages using the Wrangler cli</title>
    <id>https://waylonwalker.com/updating-cloudflare-pages-using-the-wrangler-cli/</id>
    <updated>2024-04-09T17:03:51Z</updated>
    <published>2024-04-09T17:03:51Z</published>
    <link href="https://waylonwalker.com/updating-cloudflare-pages-using-the-wrangler-cli/" rel="alternate" type="text/html"></link>
    <summary type="text">Before deploying to cloudflare pages with wrangler you need a cloudflare api token. You can get one at dash.cloudflare.com/profile/api-tokens.</summary>
    <content type="html">&lt;p&gt;Before deploying to cloudflare pages with wrangler you need a cloudflare api&#xA;token.  You can get one at&#xA;&lt;a href=&#34;https://dash.cloudflare.com/profile/api-tokens&#34; style=&#34;--favicon-url: url(&amp;#39;/assets/markata/link-avatars/dash.cloudflare.com.png&amp;#39;);&#34; data-favicon=&#34;/assets/markata/link-avatars/dash.cloudflare.com.png&#34; class=&#34;has-avatar  has-avatar-before&#34;&gt;dash.cloudflare.com/profile/api-tokens&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;figure&gt;&#xA;&lt;a href=&#34;https://dropper.waylonwalker.com/api/file/7b566e55-98ff-4d96-b0bc-3c4e5b619d68.png&#34; class=&#34;glightbox-link&#34;&gt;&lt;img class=&#34;glightbox&#34; src=&#34;https://dropper.waylonwalker.com/api/file/7b566e55-98ff-4d96-b0bc-3c4e5b619d68.png&#34; alt=&#34;cloudflare-pages-api-token.png&#34;/ data-glightbox=&#34;description: cloudflare-pages-api-token.png&#34;&gt;&lt;/a&gt;&#xA;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;install-wrangler&#34;&gt;Install Wrangler &lt;a href=&#34;#install-wrangler&#34; class=&#34;heading-anchor&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Next install wrangler using npm.&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm i -g wrangler&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;create-a-project&#34;&gt;Create a Project &lt;a href=&#34;#create-a-project&#34; class=&#34;heading-anchor&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Before you deploy to cloudflare pages you need to create a project.  You might&#xA;already have one, or you might want to create one in the webui, but you have&#xA;the option to create it at the command line with wrangler.&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npx wrangler pages deploy markout --project-name reader-waylonwalker-com --branch markout&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;deploy&#34;&gt;Deploy &lt;a href=&#34;#deploy&#34; class=&#34;heading-anchor&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Now you can deploy your static application using wrangler to cloudflare pages.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;In this example I have my application built into the markout directory, and&#xA;since the production branch is named &lt;code&gt;markout&lt;/code&gt; I need to pass that in here as&#xA;well.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;wrangler pages deploy markout --project-name reader-waylonwalker-com --branch markout&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content>
    <author>
      <name>Waylon Walker</name>
      <email>hello@waylonwalker.com</email>
      <uri>https://waylonwalker.com</uri>
    </author>
  </entry>
</feed>