Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fix(init): correct web3 standard attribution and add missing ethereum provider in config.toml template

未关闭 适合新手
#7,324 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@7ttp 已经在做这个了。

开始于 2026年10月26日。

  • #7334 来自 @7ttp —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
83/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
cli, documentation

调研方向

阅读 apps/cli/src/shared/init/project-init.templates.ts 中的模板,并将其与 apps/cli-go/pkg/config/templates/config.toml 和测试 fixture 进行比较。更新 Solana 归属说明,添加 Ethereum 示例,并在每份必需的副本中将“rows returns”更正为“rows returned”。当模板与 fixture 一致,且生成的配置显示已更正的注释和 Ethereum 部分时,即完成。

由索引模型根据 Issue 内容生成。

描述

📘 Docs supabase/cli
Documentation link

https://github.com/supabase/cli/blob/develop/apps/cli/src/shared/init/project-init.templates.ts

Issue type

Incorrect documentation

Problem
  1. Solana Web3 Standard Misattribution:
    In apps/cli/src/shared/init/project-init.templates.ts:L342, the template generated by supabase init reads:
# Allow Solana wallet holders to sign in to your project via the Sign in with Solana (SIWS, EIP-4361) standard.
# You can configure "web3" rate limit in the [auth.rate_limit] section and set up [auth.captcha] if self-hosting.
[auth.web3.solana]
enabled = false

EIP-4361 is specifically the Ethereum Improvement Proposal for "Sign-In with Ethereum" (SIWE). Solana uses SIWS / CAIP-122, not an Ethereum EIP. Citing (SIWS, EIP-4361) for Solana is inaccurate.

Missing Ethereum Web3 Provider in Init Template: The CLI configuration schema (packages/config/src/auth/web3.ts and registry-auth.ts) supports both solana and ethereum. The container runtime also supports GOTRUE_EXTERNAL_WEB3_ETHEREUM_ENABLED, but [auth.web3.ethereum] is omitted from the config.toml init template.

Minor Grammar Typo: Line 19 of the template reads: # The maximum number of rows returns from a view, table, or stored procedure. ("returns" instead of "returned")

Suggested improvement
  1. Update the Solana comment in project-init.templates.ts to reference SIWS without EIP-4361:
# Allow Solana wallet holders to sign in to your project via the Sign in with Solana (SIWS) standard.
# You can configure "web3" rate limit in the [auth.rate_limit] section and set up [auth.captcha] if self-hosting.
[auth.web3.solana]
enabled = false
  1. Add the commented-out [auth.web3.ethereum] example:
# Allow Ethereum wallet holders to sign in to your project via the Sign-In with Ethereum (SIWE, EIP-4361) standard.
# [auth.web3.ethereum]
# enabled = false
  1. Fix the grammar typo on line 19 (rows returned from).

  2. Keep parity across project-init.templates.ts, apps/cli-go/pkg/config/templates/config.toml, and the test fixture.

Additional context

I would be happy to submit a PR for this once triaged and labeled with open-for-contribution.

主要语言
TypeScript
星标
2.4k
派生
537
平均合并
18 小时 14 分钟
30 天内合并 PR
383

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

supabase/cli 的其他 Issue

查看 supabase/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。