Other Hosting Providers
Since Portosaur generates standard static files, you can use almost any modern hosting platform.
Most Popular Ones
Here are the configurations for some of the most popular ones:-
Netlify
Netlify is a fantastic choice with excellent support for Docusaurus-based sites.
- Connect your repository to Netlify.
- Set the Build Command to:
bunx portosaur build(ornpx portosaur build). - Set the Publish Directory to:
build. - (Optional) Add a
NETLIFY_NODE_VERSIONenvironment variable set to20or higher.
Vercel
Vercel provides a seamless experience for frontend frameworks.
- Import your project into Vercel.
- Choose Other as the Framework Preset.
- Set the Build Command to:
bunx portosaur build(ornpx portosaur build). - Set the Output Directory to:
build.
Cloudflare Pages
Cloudflare Pages is highly performant and offers a generous free tier.
- Connect your repository in the Cloudflare Dashboard.
- Set the Build command to:
bunx portosaur build(ornpx portosaur build). - Set the Build output directory to:
build.
TIP
Most of these providers will automatically detect your project as a Node.js app. If they ask for a framework preset and Portosaur is not listed, choosing Docusaurus 3 will usually work perfectly as it shares the same build output structure.