Repository navigation
chore: 补 MIT 许可 + 修正部署路径 - #4
Merged
Merged
Conversation
License - add LICENSE (MIT). The repo had no license file, which under default copyright means "all rights reserved" - nobody could legally reuse it. - add "license": "MIT" to package.json - add a License section to the README that scopes the grant: MIT covers the source code, not any third-party trademarks referenced in the docs, and the contracts are unaudited and should not hold real funds without a review. Deploy paths - .github/workflows/pages.yml and vercel.json set VITE_DEPLOYMENT_URL to an absolute "/deployments/xlayer-mainnet.json". Under the GitHub Pages subpath that request 404s and only succeeds because loadDeployment() falls back to a BASE_URL-derived candidate, which left a console error on every load. Both are now relative. Verified - built with the new env values: the bundle contains "./deployments/xlayer-mainnet.json" - served dist/ from a local /xguard-hook/ subpath: all six sections render, the deployment JSON returns 200, and the only remaining console entry is the expected RPC 400 from connecting without a wallet - forge test 12/12, npm run test:node 22/22, npm run web:build, npm run submission:check:final
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
许可
仓库此前没有任何 License 文件。公开仓库无许可 = 默认「保留所有权利」,别人不能合法使用、修改或分发你的代码。
加了什么
LICENSE(MIT 全文)package.json补"license": "MIT"顺手修的:部署路径
pages.yml和vercel.json里VITE_DEPLOYMENT_URL用的是绝对路径/deployments/xlayer-mainnet.json。在 GitHub Pages 子路径部署下,这个请求会 404。目前之所以还能用,是因为
loadDeployment()的回退逻辑会试下一个候选路径——但每次加载都会在控制台留一条 404。两处都改成相对路径。
验证
构建产物
子路径模拟部署(把
dist/放到本地/xguard-hook/下)其余检查
forge test—— 12 / 12npm run test:node—— 22 / 22npm run web:build—— 通过npm run submission:check:final—— 通过