pinme 1.2.5 → 1.2.6
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 +11 -7
- package/package.json +1 -1
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
|
|
package/dist/index.js
CHANGED
|
@@ -1523,7 +1523,7 @@ var import_chalk14 = __toESM(require("chalk"));
|
|
|
1523
1523
|
var import_figlet5 = __toESM(require("figlet"));
|
|
1524
1524
|
|
|
1525
1525
|
// package.json
|
|
1526
|
-
var version = "1.2.
|
|
1526
|
+
var version = "1.2.6";
|
|
1527
1527
|
|
|
1528
1528
|
// bin/upload.ts
|
|
1529
1529
|
var import_path6 = __toESM(require("path"));
|
|
@@ -5525,14 +5525,18 @@ var upload_default = async (options) => {
|
|
|
5525
5525
|
whitespaceBreak: true
|
|
5526
5526
|
})
|
|
5527
5527
|
);
|
|
5528
|
-
const authConfig = getAuthConfig();
|
|
5529
|
-
if (!authConfig) {
|
|
5530
|
-
console.log(import_chalk4.default.red("Please login first. Run: pinme set-appkey <AppKey>"));
|
|
5531
|
-
return;
|
|
5532
|
-
}
|
|
5533
|
-
const argPath = process.argv[3];
|
|
5534
5528
|
const domainArg = getDomainFromArgs();
|
|
5535
5529
|
const dnsArg = getDnsFromArgs();
|
|
5530
|
+
const needsAuth = !!domainArg || dnsArg;
|
|
5531
|
+
let authConfig = null;
|
|
5532
|
+
if (needsAuth) {
|
|
5533
|
+
authConfig = getAuthConfig();
|
|
5534
|
+
if (!authConfig) {
|
|
5535
|
+
console.log(import_chalk4.default.red("Please login first. Run: pinme set-appkey <AppKey>"));
|
|
5536
|
+
return;
|
|
5537
|
+
}
|
|
5538
|
+
}
|
|
5539
|
+
const argPath = process.argv[3];
|
|
5536
5540
|
if (argPath && !argPath.startsWith("-")) {
|
|
5537
5541
|
const absolutePath = checkPathSync(argPath);
|
|
5538
5542
|
if (!absolutePath) {
|