[{"data":1,"prerenderedAt":21},["ShallowReactive",2],{"$f3sttcg27eohmr":3},{"slug":4,"title":5,"excerpt":6,"tags":7,"publishedAt":11,"readingMinutes":12,"cover":13,"bodyHtml":20},"deploy-nuxt-portfolio-cloudflare","How to Deploy a Nuxt Portfolio on Cloudflare for Free","How I moved my Nuxt portfolio from GitHub Pages to Cloudflare Workers with D1 and R2, and the mistakes worth avoiding along the way.",[8,9,10],"Nuxt","Cloudflare","Deployment","2026-10-30T18:38:49.000Z",7,{"id":14,"url":15,"thumb":16,"alt":17,"width":18,"height":19},8,"https:\u002F\u002Fmedia.behramkttk.dev\u002Fb873e1b8-e961-474c-999b-dfdf377b1b6f.webp","https:\u002F\u002Fmedia.behramkttk.dev\u002Fb873e1b8-e961-474c-999b-dfdf377b1b6f-sm.webp","Painted orange cloud swirling above green mountain peaks in a deep blue sky.",1600,900,"\u003Cp>My portfolio used to be a static Nuxt site on GitHub Pages, with every project and service hardcoded in TypeScript files. Changing one line of text meant editing code and pushing a commit. I wanted a dashboard, a blog and a contact form, without paying for a server to run a personal site.\u003C\u002Fp>\n\u003Cp>This is how I moved it to Cloudflare, including the mistakes that cost me time. The site you’re reading runs on this setup.\u003C\u002Fp>\n\u003Ch2>What we’re building\u003C\u002Fh2>\n\u003Cp>Each part of the site lives on one Cloudflare service:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Public pages:\u003C\u002Fstrong> Workers static assets\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Dashboard API and contact form:\u003C\u002Fstrong> a Worker\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Database:\u003C\u002Fstrong> D1 (SQLite)\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Images and files:\u003C\u002Fstrong> R2\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Spam protection:\u003C\u002Fstrong> Turnstile\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Why Cloudflare? I’d already bought my domain there, so DNS was in place. Vercel’s Hobby plan also didn’t fit, because its rules treat advertising a paid service as commercial use, and a portfolio that sells your services does exactly that.\u003C\u002Fp>\n\u003Cp>Check the current limits before you rely on them, but at the time of writing the free plan is generous for a portfolio: unlimited static asset requests, 100,000 Worker requests a day, 5 GB of D1 storage and 10 GB of R2 storage with free egress.\u003C\u002Fp>\n\u003Ch2>The one decision that matters: pre-render your pages\u003C\u002Fh2>\n\u003Cp>The free Workers plan allows \u003Cstrong>10 ms of CPU per request\u003C\u002Fstrong>. That’s tight for server-rendering a Vue app on every visit.\u003C\u002Fp>\n\u003Cp>So don’t do that. Pre-render public pages at build time and serve them as static assets. Those requests never run your Worker at all, so they don’t count against the limit. Only your API routes run in the Worker.\u003C\u002Fp>\n\u003Cp>The trade-off is that content changes need a rebuild. I solved that with a \u003Cstrong>Publish changes\u003C\u002Fstrong> button in my dashboard, covered below. On my site, edits go live in about 3 minutes.\u003C\u002Fp>\n\u003Ch2>Step 1: Configure Nuxt\u003C\u002Fh2>\n\u003Cp>Set the Nitro preset to \u003Ccode>cloudflare_module\u003C\u002Fcode>, which is the one Nitro recommends for Workers:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-typescript\">\u003Cspan class=\"hljs-keyword\">export\u003C\u002Fspan> \u003Cspan class=\"hljs-keyword\">default\u003C\u002Fspan> \u003Cspan class=\"hljs-title function_\">defineNuxtConfig\u003C\u002Fspan>({\n  \u003Cspan class=\"hljs-attr\">nitro\u003C\u002Fspan>: {\n    \u003Cspan class=\"hljs-attr\">preset\u003C\u002Fspan>: \u003Cspan class=\"hljs-string\">&quot;cloudflare_module&quot;\u003C\u002Fspan>,\n    \u003Cspan class=\"hljs-attr\">cloudflare\u003C\u002Fspan>: { \u003Cspan class=\"hljs-attr\">deployConfig\u003C\u002Fspan>: \u003Cspan class=\"hljs-literal\">true\u003C\u002Fspan>, \u003Cspan class=\"hljs-attr\">nodeCompat\u003C\u002Fspan>: \u003Cspan class=\"hljs-literal\">true\u003C\u002Fspan> },\n    \u003Cspan class=\"hljs-attr\">prerender\u003C\u002Fspan>: {\n      \u003Cspan class=\"hljs-attr\">crawlLinks\u003C\u002Fspan>: \u003Cspan class=\"hljs-literal\">true\u003C\u002Fspan>,\n      \u003Cspan class=\"hljs-attr\">routes\u003C\u002Fspan>: [\u003Cspan class=\"hljs-string\">&quot;\u002F&quot;\u003C\u002Fspan>, \u003Cspan class=\"hljs-string\">&quot;\u002Fsitemap.xml&quot;\u003C\u002Fspan>],\n      \u003Cspan class=\"hljs-attr\">autoSubfolderIndex\u003C\u002Fspan>: \u003Cspan class=\"hljs-literal\">false\u003C\u002Fspan>,\n      \u003Cspan class=\"hljs-attr\">failOnError\u003C\u002Fspan>: \u003Cspan class=\"hljs-literal\">true\u003C\u002Fspan>,\n    },\n  },\n});\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Two of those options are worth explaining:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ccode>autoSubfolderIndex: false\u003C\u002Fcode>\u003C\u002Fstrong> writes \u003Ccode>\u002Fservices.html\u003C\u002Fcode> instead of \u003Ccode>\u002Fservices\u002Findex.html\u003C\u002Fcode>. Without it, every inner page redirects to a version with a trailing slash.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ccode>failOnError: true\u003C\u002Fcode>\u003C\u002Fstrong> fails the build if a page can’t be rendered. A failed build leaves your last good version live, which beats publishing a broken page.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>If you have a dashboard, make it client-only:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-typescript\">\u003Cspan class=\"hljs-attr\">routeRules\u003C\u002Fspan>: {\n  \u003Cspan class=\"hljs-string\">&quot;\u002Fadmin\u002F**&quot;\u003C\u002Fspan>: { \u003Cspan class=\"hljs-attr\">ssr\u003C\u002Fspan>: \u003Cspan class=\"hljs-literal\">false\u003C\u002Fspan>, \u003Cspan class=\"hljs-attr\">headers\u003C\u002Fspan>: { \u003Cspan class=\"hljs-string\">&quot;X-Robots-Tag&quot;\u003C\u002Fspan>: \u003Cspan class=\"hljs-string\">&quot;noindex, nofollow&quot;\u003C\u002Fspan> } },\n},\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>Step 2: Create the database and bucket\u003C\u002Fh2>\n\u003Cp>Install Wrangler, log in, and create both:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">npm install -D wrangler\nnpx wrangler login\nnpx wrangler d1 create portfolio\nnpx wrangler r2 bucket create portfolio-media\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Then add them to \u003Ccode>wrangler.jsonc\u003C\u002Fcode>. Use the \u003Ccode>database_id\u003C\u002Fcode> that the create command printed:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-json\">\u003Cspan class=\"hljs-punctuation\">{\u003C\u002Fspan>\n  \u003Cspan class=\"hljs-attr\">&quot;name&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;portfolio&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan>\n  \u003Cspan class=\"hljs-attr\">&quot;compatibility_date&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;2026-01-01&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan>\n  \u003Cspan class=\"hljs-attr\">&quot;compatibility_flags&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-punctuation\">[\u003C\u002Fspan>\u003Cspan class=\"hljs-string\">&quot;nodejs_compat&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">]\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan>\n  \u003Cspan class=\"hljs-attr\">&quot;d1_databases&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-punctuation\">[\u003C\u002Fspan>\n    \u003Cspan class=\"hljs-punctuation\">{\u003C\u002Fspan>\n      \u003Cspan class=\"hljs-attr\">&quot;binding&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;DB&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan>\n      \u003Cspan class=\"hljs-attr\">&quot;database_name&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;portfolio&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan>\n      \u003Cspan class=\"hljs-attr\">&quot;database_id&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;your-database-id&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan>\n      \u003Cspan class=\"hljs-attr\">&quot;migrations_dir&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;server\u002Fdatabase\u002Fmigrations&quot;\u003C\u002Fspan>\n    \u003Cspan class=\"hljs-punctuation\">}\u003C\u002Fspan>\n  \u003Cspan class=\"hljs-punctuation\">]\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan>\n  \u003Cspan class=\"hljs-attr\">&quot;r2_buckets&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-punctuation\">[\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">{\u003C\u002Fspan> \u003Cspan class=\"hljs-attr\">&quot;binding&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;MEDIA&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">,\u003C\u002Fspan> \u003Cspan class=\"hljs-attr\">&quot;bucket_name&quot;\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">:\u003C\u002Fspan> \u003Cspan class=\"hljs-string\">&quot;portfolio-media&quot;\u003C\u002Fspan> \u003Cspan class=\"hljs-punctuation\">}\u003C\u002Fspan>\u003Cspan class=\"hljs-punctuation\">]\u003C\u002Fspan>\n\u003Cspan class=\"hljs-punctuation\">}\u003C\u002Fspan>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The database ID isn’t a secret, so it’s fine to commit this file.\u003C\u002Fp>\n\u003Ch2>Step 3: Read D1 during the build\u003C\u002Fh2>\n\u003Cp>This is the part most tutorials skip. The D1 binding only exists inside a running Worker, but pre-rendering happens in Node during your build, where that binding doesn’t exist.\u003C\u002Fp>\n\u003Cp>My fix was to use the binding when it’s there, and fall back to D1’s HTTP API otherwise:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-typescript\">\u003Cspan class=\"hljs-keyword\">export\u003C\u002Fspan> \u003Cspan class=\"hljs-keyword\">function\u003C\u002Fspan> \u003Cspan class=\"hljs-title function_\">useDb\u003C\u002Fspan>(\u003Cspan class=\"hljs-params\">\u003C\u002Fspan>): \u003Cspan class=\"hljs-title class_\">Db\u003C\u002Fspan> {\n  \u003Cspan class=\"hljs-keyword\">const\u003C\u002Fspan> binding = \u003Cspan class=\"hljs-title function_\">useEvent\u003C\u002Fspan>().\u003Cspan class=\"hljs-property\">context\u003C\u002Fspan>.\u003Cspan class=\"hljs-property\">cloudflare\u003C\u002Fspan>?.\u003Cspan class=\"hljs-property\">env\u003C\u002Fspan>?.\u003Cspan class=\"hljs-property\">DB\u003C\u002Fspan>;\n  \u003Cspan class=\"hljs-keyword\">if\u003C\u002Fspan> (binding) \u003Cspan class=\"hljs-keyword\">return\u003C\u002Fspan> \u003Cspan class=\"hljs-title function_\">drizzle\u003C\u002Fspan>(binding, { schema });\n  \u003Cspan class=\"hljs-keyword\">return\u003C\u002Fspan> (httpDb ??= \u003Cspan class=\"hljs-title function_\">createHttpDb\u003C\u002Fspan>());\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Ccode>createHttpDb()\u003C\u002Fcode> is a Drizzle \u003Ccode>sqlite-proxy\u003C\u002Fcode> client that posts each query to D1’s \u003Ccode>\u002Fraw\u003C\u002Fcode> endpoint. It uses an API token with read-only D1 permission, stored in the build environment. \u003Ccode>useEvent()\u003C\u002Fcode> needs \u003Ccode>nitro.experimental.asyncContext\u003C\u002Fcode> turned on.\u003C\u002Fp>\n\u003Ch2>Step 4: Connect GitHub\u003C\u002Fh2>\n\u003Cp>In \u003Cstrong>Workers &amp; Pages\u003C\u002Fstrong>, select \u003Cstrong>Create application\u003C\u002Fstrong>, choose \u003Cstrong>GitHub\u003C\u002Fstrong>, and pick your repository. Then use these settings:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Worker name:\u003C\u002Fstrong> must match \u003Ccode>name\u003C\u002Fcode> in \u003Ccode>wrangler.jsonc\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Build command:\u003C\u002Fstrong> \u003Ccode>npm run build\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Deploy command:\u003C\u002Fstrong> \u003Ccode>npx wrangler deploy\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Build variable:\u003C\u002Fstrong> \u003Ccode>NODE_VERSION\u003C\u002Fcode>, set to the version you use locally\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Your \u003Ccode>package.json\u003C\u002Fcode> needs a \u003Ccode>build\u003C\u002Fcode> script for this to work. If you’re coming from GitHub Pages, you may only have \u003Ccode>generate\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>If your first build fails with \u003Ccode>Missing script: &quot;build&quot;\u003C\u002Fcode> even though the script exists, check the branch. Mine was building \u003Ccode>main\u003C\u002Fcode> while the work was on a feature branch, and pressing Retry just rebuilt the same commit. Change the production branch in \u003Cstrong>Settings\u003C\u002Fstrong> &gt; \u003Cstrong>Builds\u003C\u002Fstrong>, then push a new commit.\u003C\u002Fp>\n\u003Ch2>Step 5: Put variables in the right place\u003C\u002Fh2>\n\u003Cp>This caught me out, because Cloudflare has two sections with almost the same name:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Build variables\u003C\u002Fstrong> exist only during the build. My D1 token and public site keys go here.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Worker secrets\u003C\u002Fstrong> exist at runtime. Anything your API routes read goes here.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>I added my runtime secrets to the build section, and everything looked fine in the dashboard. The live Worker simply couldn’t see them. Setting them from the terminal avoids the confusion:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx wrangler secret put NUXT_TURNSTILE_SECRET_KEY\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Then confirm with \u003Ccode>npx wrangler secret list\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>There’s a second trap in the code. On Workers, runtime config only sees those secrets if you pass it the event:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-typescript\">\u003Cspan class=\"hljs-comment\">\u002F\u002F Doesn&#x27;t see Worker secrets\u003C\u002Fspan>\n\u003Cspan class=\"hljs-keyword\">const\u003C\u002Fspan> { turnstileSecretKey } = \u003Cspan class=\"hljs-title function_\">useRuntimeConfig\u003C\u002Fspan>();\n\n\u003Cspan class=\"hljs-comment\">\u002F\u002F Does\u003C\u002Fspan>\n\u003Cspan class=\"hljs-keyword\">const\u003C\u002Fspan> { turnstileSecretKey } = \u003Cspan class=\"hljs-title function_\">useRuntimeConfig\u003C\u002Fspan>(event);\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>Step 6: Add a Publish button\u003C\u002Fh2>\n\u003Cp>In \u003Cstrong>Settings\u003C\u002Fstrong> &gt; \u003Cstrong>Builds\u003C\u002Fstrong> &gt; \u003Cstrong>Deploy Hooks\u003C\u002Fstrong>, create a hook for your production branch. It gives you a URL, and a POST request to that URL starts a build.\u003C\u002Fp>\n\u003Cp>Store the URL as a Worker secret, because anyone who has it can trigger builds. Then call it from an admin-only route:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-typescript\">\u003Cspan class=\"hljs-keyword\">export\u003C\u002Fspan> \u003Cspan class=\"hljs-keyword\">default\u003C\u002Fspan> \u003Cspan class=\"hljs-title function_\">defineEventHandler\u003C\u002Fspan>(\u003Cspan class=\"hljs-title function_\">async\u003C\u002Fspan> (event) =&gt; {\n  \u003Cspan class=\"hljs-keyword\">const\u003C\u002Fspan> { deployHookUrl } = \u003Cspan class=\"hljs-title function_\">useRuntimeConfig\u003C\u002Fspan>(event);\n  \u003Cspan class=\"hljs-keyword\">await\u003C\u002Fspan> $fetch(deployHookUrl, { \u003Cspan class=\"hljs-attr\">method\u003C\u002Fspan>: \u003Cspan class=\"hljs-string\">&quot;POST&quot;\u003C\u002Fspan> });\n  \u003Cspan class=\"hljs-keyword\">return\u003C\u002Fspan> { \u003Cspan class=\"hljs-attr\">ok\u003C\u002Fspan>: \u003Cspan class=\"hljs-literal\">true\u003C\u002Fspan> };\n});\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Now saving in the dashboard is instant, and publishing rebuilds the site whenever you’re ready.\u003C\u002Fp>\n\u003Ch2>Step 7: Move your domain\u003C\u002Fh2>\n\u003Cp>If your domain is on GitHub Pages, the order matters. \u003Cstrong>Remove it from GitHub last, not first.\u003C\u002Fstrong> If you remove it while your DNS still points at GitHub, someone else could claim your domain on Pages during the gap.\u003C\u002Fp>\n\u003Col>\n\u003Cli>Merge your work to \u003Ccode>main\u003C\u002Fcode>, and point Workers Builds at it.\u003C\u002Fli>\n\u003Cli>Delete the four A records pointing at GitHub’s \u003Ccode>185.199.x.x\u003C\u002Fcode> addresses. Leave your MX and TXT records alone.\u003C\u002Fli>\n\u003Cli>Straight after, add your domain under the Worker’s \u003Cstrong>Settings\u003C\u002Fstrong> &gt; \u003Cstrong>Domains &amp; Routes\u003C\u002Fstrong> &gt; \u003Cstrong>Custom domain\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003Cli>Turn on \u003Cstrong>Always Use HTTPS\u003C\u002Fstrong>, and add a redirect rule from \u003Ccode>www\u003C\u002Fcode> to your root domain.\u003C\u002Fli>\n\u003Cli>Update any OAuth app or Turnstile widget to use the new hostname.\u003C\u002Fli>\n\u003Cli>Once the new site works, remove the custom domain in your GitHub repo’s Pages settings.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Keep those four A records handy, because adding them back is your rollback.\u003C\u002Fp>\n\u003Cp>If Turnstile shows error \u003Ccode>110200\u003C\u002Fcode>, the hostname you’re on isn’t listed on the widget. That one’s a quick fix under \u003Cstrong>Hostname Management\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Ch2>Mistakes worth avoiding\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Silent spam checks.\u003C\u002Fstrong> My contact form had a hidden honeypot field and a minimum fill time, and it showed “Message Sent” even when it dropped a submission. My own test messages vanished without a single error. Browser autofill can fill a hidden field too, so real visitors could lose messages the same way. Once Turnstile was verifying every submission, I removed both checks.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Loading a whole icon set.\u003C\u002Fstrong> With \u003Ccode>@nuxt\u002Ficon\u003C\u002Fcode> on a static site, icon names stored in a database aren’t found by the build scan, so they render blank. I query those names at build time and add them to the client bundle through the \u003Ccode>icon:clientBundleIcons\u003C\u002Fcode> hook.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Assuming backups exist.\u003C\u002Fstrong> D1 restores up to 7 days back on the free plan, and R2 has no automatic backup. Run this occasionally, and keep your own copies of important images:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx wrangler d1 \u003Cspan class=\"hljs-built_in\">export\u003C\u002Fspan> portfolio --remote --output=backup.sql\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>Forgetting \u003Ccode>workers.dev\u003C\u002Fcode>.\u003C\u002Fstrong> After you’ve moved to your domain, set \u003Ccode>&quot;workers_dev&quot;: false\u003C\u002Fcode> in \u003Ccode>wrangler.jsonc\u003C\u002Fcode>, so search engines don’t index two copies of your site.\u003C\u002Fp>\n\u003Ch2>Was it worth it?\u003C\u002Fh2>\n\u003Cp>Yes. I now have a dashboard, a blog and a working contact form on the free plan, and public pages load as static files. Editing no longer means opening a code editor.\u003C\u002Fp>\n\u003Cp>The main cost is that 10 ms limit. A couple of my dashboard requests went over it while I was measuring, and they still succeeded, but I wouldn’t count on that every time. If it ever becomes a problem, the paid plan is $5 a month, and the public site isn’t affected either way.\u003C\u002Fp>\n",1793793959861]