pinme 1.2.5 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +9 -2
  2. package/dist/index.js +2005 -356
  3. package/package.json +31 -29
package/README.md CHANGED
@@ -118,12 +118,18 @@ This section provides AI-specific instructions for deploying websites using PinM
118
118
 
119
119
  If no suitable folder is found, ask the user to specify the upload path.
120
120
 
121
- 4. **Execute Deployment Command**
121
+ **Router Mode Check:**
122
+ - Ensure the project uses **hash mode** router (e.g., `/#/about`)
123
+ - History mode (e.g., `/about`) will cause 404 on sub-routes when deployed to IPFS
124
+ - For React: use `HashRouter` instead of `BrowserRouter`
125
+ - For Vue: use `createHashHistory()` instead of `createWebHistory()`
126
+
127
+ 5. **Execute Deployment Command**
122
128
  ```bash
123
129
  pinme upload <folder_path>
124
130
  ```
125
131
 
126
- 5. **Return Result**
132
+ 6. **Return Result**
127
133
  - Only return final preview page URL: `https://pinme.eth.limo/#/preview/*`
128
134
  - Do not output additional logs or intermediate steps
129
135
 
@@ -735,6 +741,7 @@ pinme import ~/Downloads/<CID>.car
735
741
  4. **Verify Deployment**
736
742
  - Test if preview page is accessible after upload
737
743
  - Check if website functions normally
744
+ - **Ensure router is configured to use hash mode** (e.g., `/#/path` instead of `/path`)
738
745
 
739
746
  ---
740
747