Minor fix deployment docs (#3210)

* Minor fix deployment docs

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Reynaldi Chernando
2026-06-04 23:48:25 +07:00
committed by GitHub
parent a480679a2d
commit 3ceba9e3b3
2 changed files with 52 additions and 44 deletions
+21 -18
View File
@@ -142,29 +142,32 @@ You can see various Puter.js workers management features in action from the foll
## Deployment
Once your worker is ready, you can put it online on a free `*.puter.work` subdomain. You can publish it manually in a few clicks, or automatically from your GitHub repository.
Once your worker is ready, you can put it online on a free `*.puter.work` subdomain.
### Publish from puter.com
The quickest way to publish a worker is to create it on [puter.com](https://puter.com) and publish it.
1. Create a `.js` file containing your worker code.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/workers/code.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
2. Right-click the file and choose **Publish as Worker**.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/workers/publish-workers.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
3. Pick a name and click **Publish**. Your worker is live at `https://your-worker.puter.work`.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/workers/published.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
<ol>
<li>
Create a <code>.js</code> file containing your worker code.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/workers/code.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
</li>
<li>
Right-click the file and choose <strong>Publish as Worker</strong>.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/workers/publish-workers.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
</li>
<li>
Pick a name and click <strong>Publish</strong>. Your worker is live at <code>https://your-worker.puter.work</code>.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/workers/published.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
</li>
</ol>
<!-- ### Automate with GitHub Actions
+31 -26
View File
@@ -3,47 +3,52 @@ title: Deployments
description: Deploy your Puter.js app anywhere, or host your website directly on Puter.
---
Now that you've integrated Puter.js into your app, the next step is getting it online.
Once you've integrated Puter.js into your app, the next step is getting it online.
Puter.js is a regular JavaScript library, so your app deploys like any other website. You can ship it to any hosting platform you already use, or host it directly on [Puter](https://puter.com).
## Deploy anywhere
Because Puter.js runs entirely on the client, there's no special backend to provision. Build your app as you normally would and deploy the output to any static or web hosting provider, such as <a href="https://vercel.com" rel="nofollow">Vercel</a>, <a href="https://pages.cloudflare.com" rel="nofollow">Cloudflare Pages</a>, <a href="https://www.netlify.com" rel="nofollow">Netlify</a>, or <a href="https://pages.github.com" rel="nofollow">GitHub Pages</a>.
Because Puter.js runs entirely in the browser, there's no special backend to provision. Build your app as you normally would and serve the output from any static or web hosting provider, such as <a href="https://vercel.com" rel="nofollow">Vercel</a>, <a href="https://pages.cloudflare.com" rel="nofollow">Cloudflare Pages</a>, <a href="https://www.netlify.com" rel="nofollow">Netlify</a>, or <a href="https://pages.github.com" rel="nofollow">GitHub Pages</a>.
<div class="info">Your app should be served over HTTPS by a web server, like any of the hosting providers above.</div>
No extra configuration is required. Your app keeps talking to Puter's services from the browser, wherever it's hosted.
## Deploy to Puter
Puter can also host your website for you, on a free `*.puter.site` subdomain. You can publish it manually in a few clicks, or automatically from your GitHub repository.
Puter can also host your website for you, on a free `*.puter.site` subdomain.
### Publish from puter.com
The quickest way to publish a website is to upload it on [puter.com](https://puter.com) and publish it.
1. Right-click on the desktop and create a new folder for your website's files.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/create-directory.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
2. Open the folder, right-click inside it, and choose **Upload Here** to upload your website's files (your `index.html` and any other assets).
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/upload-here.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
3. Right-click the folder and choose **Publish as Website**.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/publish-website.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
4. Pick a subdomain and click **Publish**. Your site goes live instantly at `https://your-subdomain.puter.site`.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/published.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
<ol>
<li>
Right-click on the desktop and create a new folder for your website's files.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/create-directory.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
</li>
<li>
Open the folder, right-click inside it, and choose <strong>Upload Here</strong> to upload your website's files (your <code>index.html</code> and any other assets).
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/upload-here.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
</li>
<li>
Right-click the folder and choose <strong>Publish as Website</strong>.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/publish-website.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
</li>
<li>
Pick a subdomain and click <strong>Publish</strong>. Your site goes live instantly at <code>https://your-subdomain.puter.site</code>.
<figure style="margin: 30px 0;">
<img src="https://developer.puter.com/assets/img/free-hosting/published.webp" style="width: 100%; max-width: 600px; margin: 0 auto; display: block; border-radius: 6px;">
</figure>
</li>
</ol>
<!-- ### Automate with GitHub Actions