This guide walks you through the process of building a Gatsby app and deploying it to the Akash Network. We’ll cover both using the Akash Console and the Akash CLI.
1. Build Your Gatsby App
- Install Gatsby CLI:
- Create a Gatsby Project:
- Build for Production:
This creates a public/
directory containing the static files for deployment.
Prepare Your Akash Deployment
A. Sample deploy.yaml
Use the following SDL file to configure your Akash deployment. Update placeholders like YOUR_IMAGE
and YOUR_DOMAIN
accordingly.
B. Upload Static Files
Before deployment, host the public/ files on your image. For example:
3. Deploy Using Akash
Option A: Akash Console
-
Go to the Akash Console.
-
Log in with your Keplr wallet.
-
Create a deployment:
- Upload the deploy.yaml file.
- Specify the price you’re willing to pay.
-
Approve the lease once a provider accepts your deployment.
-
Use the provider endpoint to access your app.
Option B: Akash CLI
- Install the Akash CLI by following the CLI Installation Guide.
- Fund your wallet to pay for deployment fees.
- Deploy your app:
- Monitor the status:
- Once the lease is active, access your app via the provider’s endpoint.
4. Test Your Deployment
Visit the endpoint provided by the Akash provider to ensure your Gatsby app is live and functional.