Frameworks
The 14 Node frameworks that Owbase publishes, the modes of each one and the default commands and folders.
When you create the site, the chosen framework fills in the commands, the output directory and the fallback file. Everything can be changed later, in Settings → Build (applies to the next deployments).
| Framework | Modes | Install | Build | Output directory: static | Output directory: SSR |
|---|---|---|---|---|---|
| Analog | static and SSR | npm install |
npm run build |
./dist/analog/public |
./dist/analog |
| Angular | static and SSR | npm install |
npm run build |
./dist/angular/browser |
./dist/angular |
| Next.js | static and SSR | npm install |
npm run build |
./out |
./.next |
| Nuxt | static and SSR | npm install |
npm run generate (static), npm run build (SSR) |
./.output/public |
./.output |
| SvelteKit | static and SSR | npm install |
npm run build |
./build |
./build |
| Astro | static and SSR | npm install |
npm run build |
./dist |
./dist |
| TanStack Start | static and SSR | npm install |
npm run build |
./dist/client |
./.output |
| Remix | static and SSR | npm install |
npm run build |
./build/client |
./build |
| React | static | npm install |
npm run build |
./dist |
— |
| Vue.js | static | npm install |
npm run build |
./dist |
— |
| Vite | static | npm install |
npm run build |
./dist |
— |
| Lynx | static | npm install |
npm run build |
./dist |
— |
| React Native | static | npm install |
npm run build |
./dist |
— |
| Other (ready-made files) | static and SSR (your own server) | — | — | ./ (the root) |
./ (the root) |
Fallback file
Section titled “Fallback file”On a single-page static site, routes exist only in JavaScript: a request to /products/12 finds no file. The fallback file is served in those cases (with status 200), and the app’s router handles the rest. React, Vue.js, Lynx, React Native and Analog come with index.html; Angular, with index.csr.html. When empty, a missing path responds 404 with the site’s 404.html or, without one, a neutral page. With a fallback, the 200 and 404 rules of _redirects don’t apply; see Redirects, 404 and caching.
Python in the build
Section titled “Python in the build”The build image includes Python 3 and pip, besides Node, so a Python site generator runs in the build command. A plain pip install fails with externally-managed-environment (PEP 668): create a virtual environment first, in the command itself:
python3 -m venv /tmp/venv && /tmp/venv/bin/pip install -r requirements.txt && /tmp/venv/bin/python build.pyThe image doesn’t include the time zone database, so ZoneInfo("America/Sao_Paulo") fails with No time zone found. Until the image ships it, install the tzdata package in the same venv (/tmp/venv/bin/pip install tzdata, or add tzdata to requirements.txt): Python then finds the time zones through it.
In SSR mode, Owbase doesn’t ask for a start command: it uses the framework’s own start script, which starts the Node server from what the build left in the output directory and leaves it listening on 0.0.0.0, port 3000. Because of that:
- the framework’s build must generate the production server for Node in the output directory from the table above (the static output directory, which only has files, won’t work);
- keep the SSR-mode output directory from the table and don’t hard-code another host or port in the server code;
- the runtime is Node 24 or Node 22 (the one chosen for the site): dependencies must run on it.
Your own server (Other in SSR)
Section titled “Your own server (Other in SSR)”To run your own Node server without a framework (an http.createServer, Express, Fastify…), use the Other framework in SSR mode and set the start command, for example node server.mjs:
- the command runs inside the output directory; the server must listen on
0.0.0.0, port3000; - without a start command, the site isn’t created (400);
- if the command points to a file (
node server.mjs,node ./dist/index.js,bun,tsxordeno run) that isn’t in the output directory, the build fails naming the file, instead of the site going up without answering; - dependencies come from the install command (
npm install), in the same folder: with the output directory at the root (./),node_modulesgoes along; - if the server crashes or doesn’t start, the error shows up in the request log.