memcode docs
Websites

Previewing and publishing

Share a draft, publish it, update it, take it offline, and who in your organization can do each.

Every site has two versions: the preview, which is what your latest build produced, and the live site at its memcode.app address. Builds only ever change the preview. Nothing reaches the live site until you publish.

Share a preview

To show someone a draft before it's live, click the link icon above the preview. That copies a short link like memcode.ai/p/Xk4mP9qa. From the command line:

memcode websites share crumb

Or just ask memcode: "give me a link to share the crumb preview".

Anyone with the link can view the preview, but can't change it, for 7 days (--days sets 1 to 30). It shows the latest preview each time it's opened, and never the live site. To stop a link working before then:

memcode websites share crumb --list               # the links that still work
memcode websites share crumb --off memcode.ai/p/Xk4mP9qa

The person who made a link, the site's creator, or an org owner or admin can turn it off. Deleting the site turns off all its links.

Publish

Click Publish, or:

memcode websites publish

(run inside a pulled site, or pass its directory). The site is live within a minute.

When you build more changes later, the button becomes Publish changes. The live site keeps showing the old version until you click it.

You can't publish while a build is still running, or when the most recent build failed. Build again, and publish once it succeeds. This keeps a half-finished build from ever going live.

Take a site offline

Unpublish takes the live site down but keeps everything else: the preview, the code, assets, and any custom domain setup. Publish again to bring it back.

memcode websites unpublish

Delete a site

Under Site settings, Delete website removes the site and takes it offline. Its address and custom domain are released, so you can use them for a new site.

Who can do what

In an organization, anyone can view a site, chat about it, and build changes, because builds only touch the preview. Changing what the public sees or who controls the site takes more:

ActionWho
View, plan, build, edit text in the previewAny member
Make a share link to the previewAny member
Publish, publish changes, unpublishThe site's creator, or an org owner or admin
Add, verify, or remove a custom domainThe site's creator, or an org owner or admin
Upload or delete assetsThe site's creator, or an org owner or admin
Rename, change the site's default model, deleteThe site's creator, or an org owner or admin

Any member can still pick a model for the builds they run; only saving it as the site's default is limited.

On this page