Sharing
Share site on a site’s row gives it a public https:// address that anyone you send it to can open, without deploying anything. DevKit runs Cloudflare’s cloudflared connector; your computer opens no ports.
devkit share shop # Shared at https://calm-fox-1234.trycloudflare.comdevkit unshare shop # Sharing stoppedAddresses
Section titled “Addresses”- Random address (the default): a new
*.trycloudflare.comaddress each time you share. No account needed. - Your domain: a stable address like
shop-dev.example.com, on a domain in your Cloudflare account. See Share on your domain.
Visitors see your site as it is at https://shop.test: links, redirects and asset URLs use the public address, and PHP sees the public host name.
Laravel sites work while Vite’s dev server runs (npm run dev): DevKit sends the CSS, JavaScript and fonts it serves through the share, including live reload.
Who can open shared sites
Section titled “Who can open shared sites”Set these in Settings › Sharing; DevKit remembers your choice of address and these rules. They apply to every shared site, on random addresses and your domain alike.
- Ask for a password: visitors type it once in the browser’s sign-in prompt; any user name works.
- Only allow these IP addresses: add addresses or ranges such as
203.0.113.0/24. Add my IP adds the public address you’re using now. Everyone else gets a page saying the site isn’t open to them. Addresses come from Cloudflare, so visitors can’t fake them.
With both on, visitors need the password and an allowed address.
While a site is shared
Section titled “While a site is shared”- Stop sharing after 1 hour, 8 hours or 1 day, or never.
- Keep shared sites out of search engines (on by default) adds
X-Robots-Tag: noindex. - Visitors’ requests show in Requests with their IP address and a globe mark.
- The site’s row and the menu bar icon show a cyan wire while it’s shared.
Random addresses are limited by Cloudflare: about 200 requests at a time and no server-sent events. Cloudflare also drops them now and then; DevKit reconnects straight away, but the address changes, and the site’s row shows the new one. Use your domain if you need an address that stays put.