FOSSBilling's website and documentation. Built with Nextra on Next.js, deployed to Cloudflare Workers, and available at fossbilling.org.
$ npm ci
Use npm install instead if you are not working from a clean install.
$ npm run dev
This command starts a local development server at http://localhost:3000. Most changes are reflected live without having to restart the server.
npm run dev: local development servernpm run build: production build (runs Pagefind indexing viapostbuild)npm run start: serve the production build with Next.jsnpm run preview: build + run the OpenNext Cloudflare previewnpm run deploy: build + deploy to Cloudflare Workers (requires Wrangler auth)npm run upload: build + upload to Cloudflare Workers (requires Wrangler auth)npm run cf-typegen: generate Cloudflare env types incloudflare-env.d.tsnpm run typecheck: TypeScript typecheck (CI uses this)
OpenNext handles the Cloudflare Workers build output. The wrangler.jsonc configuration and .open-next artifacts are produced by the OpenNext build step. Use the preview, deploy, or upload scripts after configuring Wrangler for your Cloudflare account.
This website uses some components from the Nextra website. Nextra is an awesome project and they generously published both the package and their website under the MIT license. You can find the source code of their website here.