fix: update readme

This commit is contained in:
junchi.zhang
2025-04-29 16:44:18 +08:00
parent a6db4f9561
commit b523a07b45
+16 -28
View File
@@ -12,34 +12,6 @@ Website[https://pinme.eth.limo/](https://pinme.eth.limo/)
- 🔗 Automatically generate accessible IPFS links
- 🌐 Preview uploaded content
## Usage Tips
### Uploading Vite Projects
When uploading projects built with Vite, please note:
1. **Vite Configuration**: Add `base: "./"` to your Vite configuration file to ensure proper asset path resolution:
```js
// vite.config.js
export default {
base: "./",
// other configurations...
}
```
2. **Path Requirements**: When using `pinme upload` command, you must use relative paths rather than absolute paths:
```bash
# Correct usage (relative path)
pinme upload ./dist
# Incorrect usage (absolute path)
pinme upload /home/user/project/dist
```
This ensures that your Vite-built application will work correctly when accessed through IPFS.
## Installation
### Using npm
@@ -179,6 +151,22 @@ Logs and configuration files are stored in:
MIT License - See the [LICENSE](LICENSE) file for details
## Usage Tips
### Uploading Vite Projects
When uploading projects built with Vite, please note:
1. **Vite Configuration**: Add `base: "./"` to your Vite configuration file to ensure proper asset path resolution:
```js
// vite.config.js
export default {
base: "./",
// other configurations...
}
```
## Contact Us
If you have questions or suggestions, please contact us through: