FOSSBilling's website. Built with Next.js, deployed to Cloudflare Workers, and available at fossbilling.org.
Documentation is hosted separately at docs.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 buildnpm 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.