pinme 1.2.5 → 2.0.0-beta.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.
- package/README.md +9 -2
- package/dist/index.js +1349 -282
- package/package.json +4 -2
- package/template/README.md +177 -0
- package/template/backend/package.json +12 -0
- package/template/backend/schema/001_init.sql +35 -0
- package/template/backend/src/worker.ts +108 -0
- package/template/backend/wrangler.toml +11 -0
- package/template/frontend/.env.example +4 -0
- package/template/frontend/index.html +12 -0
- package/template/frontend/package.json +25 -0
- package/template/frontend/pnpm-lock.yaml +1119 -0
- package/template/frontend/src/App.css +389 -0
- package/template/frontend/src/App.tsx +38 -0
- package/template/frontend/src/components/Header.tsx +29 -0
- package/template/frontend/src/main.tsx +21 -0
- package/template/frontend/src/pages/About/index.tsx +39 -0
- package/template/frontend/src/pages/Demo/index.tsx +87 -0
- package/template/frontend/src/pages/Home/index.tsx +94 -0
- package/template/frontend/src/utils/api.ts +6 -0
- package/template/frontend/src/vite-env.d.ts +1 -0
- package/template/frontend/tsconfig.json +22 -0
- package/template/frontend/tsconfig.node.json +11 -0
- package/template/frontend/vite.config.ts +27 -0
- package/template/package.json +16 -0
- package/template/pinme.toml +18 -0
- package/template/pnpm-workspace.yaml +3 -0
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
|
-
|
|
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
|
-
|
|
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
|
|