A simple invoicing template for creating, paying, and viewing requests in Request Network.
Built with:
npm install
npm run start
cp .env.example .env.local
npm run dev
We deploy to an EasyPanel server using Github Actions and Heroku Buildpacks. You could easily deploy to Vercel, Netlify, or any other platform.
- deploy-to-staging.yml - Deploy to Staging on push to
main
branch. - deploy-to-production.yml - Deploy to Production on release published in Github.
Before deploying, ensure you have created a .env
file in the root of your project. Below is a list of available environment variables. You can also take a look at the .env.example file for reference.
Variable Name | Description | Required |
---|---|---|
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID | Your Wallet Connect Project ID | ✅ |
NEXT_PUBLIC_SUPPORT_EMAIL | Support email address | ✅ |
NEXT_PUBLIC_APP_URL | The application URL | ✅ |
NEXT_PUBLIC_RPC_URL_ETHEREUM | RPC URL for Ethereum network | ✅ |
NEXT_PUBLIC_RPC_URL_POLYGON | RPC URL for Polygon network | ✅ |
NEXT_PUBLIC_RPC_URL_SEPOLIA | RPC URL for Sepolia network | ✅ |
In your next.config.js file, ensure you have the following configuration:
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: false,
};
export default nextConfig;
This configuration ensures that the Svelte web components render correctly. The swcMinify: false setting is crucial because Svelte web components and their rendering nature can sometimes conflict with aggressive minification processes. Disabling SWC minification helps prevent potential issues with web component rendering.