Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ React Tooltip
[npm-url]: http://npmjs.org/package/rc-tooltip
[travis-image]: https://img.shields.io/travis/react-component/tooltip/master?style=flat-square
[travis-url]: https://travis-ci.com/react-component/tooltip
[github-actions-image]: https://github.com/react-component/tooltip/workflows/CI/badge.svg
[github-actions-url]: https://github.com/react-component/tooltip/actions
[github-actions-image]: https://github.com/react-component/tooltip/actions/workflows/react-component-ci.yml/badge.svg
[github-actions-url]: https://github.com/react-component/tooltip/actions/workflows/react-component-ci.yml
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/tooltip/master.svg?style=flat-square
[codecov-url]: https://app.codecov.io/gh/react-component/tooltip
[david-url]: https://david-dm.org/react-component/tooltip
[david-image]: https://david-dm.org/react-component/tooltip/status.svg?style=flat-square
[david-dev-url]: https://david-dm.org/react-component/tooltip?type=dev
[david-dev-image]: https://david-dm.org/react-component/tooltip/dev-status.svg?style=flat-square
[download-image]: https://img.shields.io/npm/dm/rc-tooltip.svg?style=flat-square
[download-url]: https://npmjs.org/package/rc-tooltip
[bundlephobia-url]: https://bundlephobia.com/package/rc-tooltip
Expand Down Expand Up @@ -66,7 +62,7 @@ ReactDOM.render(
`npm start` and then go to
<http://localhost:8000/demo>

Online demo: <https://react-component.github.io/tooltip/demo>
Online demo: https://tooltip-react-component.vercel.app/

## API

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"@types/react": "^19.1.4",
"@types/react-dom": "^19.1.5",
"@types/warning": "^3.0.0",
"cross-env": "^7.0.0",
"dumi": "^2.2.13",
"eslint": "^8.56.0",
"eslint-plugin-unicorn": "^55.0.0",
Expand Down
15 changes: 13 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"framework": "umijs"
}
"$schema": "https://openapi.vercel.sh/vercel.json",
"version": 2,
"name": "@rc-component/tooltip",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The name property in vercel.json is used for the Vercel project name. Using the scoped package name @rc-component/tooltip is unconventional and doesn't match the project name tooltip-react-component implied by the new demo URL (https://tooltip-react-component.vercel.app/). This inconsistency can cause confusion and issues when deploying or linking the project with the Vercel CLI. To improve clarity and consistency, it's recommended to use a name that matches the Vercel project.

Suggested change
"name": "@rc-component/tooltip",
"name": "tooltip-react-component",

"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": {
"distDir": "dist"
}
}
]
}