Aucune description

lushdog@outlook.com 85409bf0f7 readme il y a 4 semaines
.vscode d4ffe3b046 add my lp il y a 1 mois
public a012ba0e18 Initial commit from Create Next App il y a 2 mois
src b869f64f84 close position il y a 4 semaines
.dockerignore f89e4a0225 docker il y a 2 mois
.env.example 85409bf0f7 readme il y a 4 semaines
.gitignore d79965bc90 add dockercompose il y a 4 semaines
.prettierignore f89e4a0225 docker il y a 2 mois
.prettierrc.json d4ffe3b046 add my lp il y a 1 mois
Dockerfile 58d0019b6b fix token il y a 4 semaines
README.md 85409bf0f7 readme il y a 4 semaines
docker-compose.yml d79965bc90 add dockercompose il y a 4 semaines
eslint.config.mjs d4ffe3b046 add my lp il y a 1 mois
next.config.ts 7d192a4bca fix il y a 1 mois
package.json 34e77262cb 添加详细信息 il y a 1 mois
pnpm-lock.yaml 34e77262cb 添加详细信息 il y a 1 mois
postcss.config.mjs d4ffe3b046 add my lp il y a 1 mois
tsconfig.json 7d192a4bca fix il y a 1 mois

README.md

This is a Next.js project bootstrapped with create-next-app.

环境变量配置

本地开发

  1. 创建 .env.local 文件(此文件已被 .gitignore 忽略,不会提交到 Git):

    # Solana RPC 地址
    SOL_ENDPOINT=https://lb.drpc.live/solana/
    
    # Solana 私钥(用于签名交易,敏感信息,不要提交到 Git)
    SOL_SECRET_KEY=your_secret_key_here
    
  2. 或者参考 .env.example 文件创建 .env.local

Docker 运行

创建.env文件,添加以下内容

# Solana RPC 地址
SOL_ENDPOINT=https://lb.drpc.live/solana/

# Solana 私钥(用于签名交易,敏感信息,不要提交到 Git)
SOL_SECRET_KEY=your_secret_key_here

直接启动(会先自动编译)


`docker compose up -d`

使用 RPC 地址

在代码中使用 src/lib/solana-config.ts 中的工具函数:

import { getSolanaRpcUrl } from '@/lib/solana-config'

const rpcUrl = getSolanaRpcUrl()

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.