Skip to content

Build the project

Run the project's real build, download the compiled output, or turn it into a new app.

A framework project has two forms: the source you work on, and the compiled output a browser actually runs. Build produces the second one.

For a project that needs it, the button in the header says Build rather than Publish. A static site has nothing to compile, so it keeps Publish.

What happens#

Your project is sent to a build machine, dependencies are installed, and the project's own build script runs — the one in its package.json, not something YeshBe substitutes. The output goes wherever the project puts it: dist, out, .output/public.

The panel shows the stage and the log while it runs, and the whole log if it fails. A build that fails is almost always the same failure you'd get locally, with the same message.

When it's done#

Three things you can do with the result:

Downloadthe ZIP

The compiled output, as a folder of static files. This is what you upload to any host — your own server, a bucket, another CDN. It is plain HTML, CSS and JavaScript with no dependency on YeshBe.

Publishit

Put it on a live URL on YeshBe's CDN. See Publish to a CDN.

Makeit a new app

Create a new app from the build's output. The compiled files become a static site, which previews instantly and publishes like any other — useful when you want the built result to live on its own, with its own address and its own versions, while the source project carries on separately.

Earlier builds#

Each build is kept with its status, how long it took, how many files it produced and its size, and its ZIP stays downloadable. When a deploy breaks, the previous build is still there.

Build or preview#

Different jobs, and it's worth not confusing them:

PreviewBuild
RunsThe dev serverThe production build
ForWorking on the projectShipping it
OutputA page you look atA folder of files
LastsUntil you stop or walk awayKept

The dev server is lenient and the production build is not, so a project that previews perfectly can still fail to build. That is the build doing its job — type errors, missing imports and unused variables that the dev server tolerates are exactly what you want caught before a release.

Projects that can't be built#

No build script, or a stack the build machine doesn't run. The button says so rather than failing — and a static site doesn't need one.

Next#