DEPLOYMENT
Deployment Adapters
Electroplix is platform-agnostic. Export your project and deploy to the environment that fits your team using deployment adapters — swap adapters in your config without rewriting your application.
Cloudflare Adapter
Deploy to Cloudflare Pages and Workers with OpenNext. Add the Cloudflare adapter to your project configuration, then run the adapter CLI to build and publish.
// electroplix.config.ts
export default {
adapter: cloudflare_adapter(),
};Deploy command: npx electroplix-adapter-cloudflare-pages
AWS Adapter
Deploy to AWS Lambda using SST (Serverless Stack). Configure the AWS adapter, then deploy to your target stage.
export default {
adapter: aws_adapter(),
};Deploy command: npx sst deploy --stage prod
Vercel Adapter
Deploy to Vercel with zero-config Next.js support. Use the Vercel adapter in your config and the Vercel CLI to publish.
export default {
adapter: vercel_adapter(),
};Deploy command: vercel --prod
Netlify Adapter
Deploy static and serverless Next.js output to Netlify.
export default {
adapter: netlify_adapter(),
};Deploy command: netlify deploy --prod
Docker Adapter
Containerize your application. The Docker adapter generates a Dockerfile you can build and run on any container host.
export default {
adapter: docker_adapter(),
};
// Then:
// docker build -t my-app .
// docker run -p 3000:3000 my-appNode Server Adapter
Run your app as a standalone Node.js server — ideal for VPS, bare metal, or private cloud.
export default {
adapter: node_server_adapter(),
};
// node build/index.jsDeploy from the Dashboard
- Open your project and go to Project Settings.
- Select Deployment.
- Link your GitHub repository.
- Choose the branch to deploy.
- Click Deploy and monitor build logs in the Dashboard.
Deploy via GitHub CI/CD
Automate deployments with GitHub Actions. Electroplix exports a workflow file (for example deploy.yml) that builds your app and runs the selected adapter on push to your main branch.
- Connect your repository from the Dashboard
- Configure secrets and environment variables in GitHub
- Push to your deploy branch to trigger the workflow
- Review build and deploy logs in GitHub Actions and the Electroplix Dashboard
Electroplix Hosting
Ship directly from Electroplix without configuring an external adapter. Apps publish to project_name.electroplix.app with automatic SSL, preview deployments, and custom domain support. Enterprise plans add dedicated infrastructure, SLAs, and compliance options.
Switching Hosting Providers
Change platforms by updating the adapter function in your project configuration and redeploying. Your application code stays the same — only the deployment target changes.
Troubleshooting
- Environment variables — Confirm secrets are set in the Dashboard and on your target platform (Vercel, Cloudflare, AWS, etc.).
- Build errors — Run a local production build before deploying; fix TypeScript, lint, and dependency issues first.
- Runtime logs — Check deployment logs in the Electroplix Dashboard and your provider's console (Cloudflare, Vercel, Netlify) for 4xx/5xx and adapter-specific errors.