尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Backend for the ORICAN tee customizer. Printify's API rejects browser requests, so every Printify call goes through these Vercel functions and the token stays in Vercel.
| Endpoint | Who calls it | What it does |
|---|---|---|
GET / or /admin | you (browser) | Operations Command Center: Bold black-and-white admin dashboard for live pipeline monitoring, order simulations, blanks & mockup explorer, and theme patching. |
GET /api/catalog | you (x-admin-key) | Read-only: Printify shops + EU providers for candidate blanks. |
POST /api/setup | you (x-admin-key) | Creates/reuses one unpublished draft per blank in Printify shop 7881083; returns variant mapping, costs, mockups. GET = report only. |
POST /api/upload | storefront | Issues a Vercel Blob client-upload token for the design PNG (PNG only, max 40 MB, designs/). |
POST /api/shopify-order | Shopify webhook | On "Order payment", sends ORICAN line items (SKU PFY-… + _design_url property) to Printify. Orders wait for your approval in Printify unless AUTO_PRODUCTION=true. |
GET/POST /api/models | storefront (GET) / you (POST) | 3D model catalogue in Blob under models/<slug>/. GET lists it publicly; POST issues admin upload tokens or deletes a model. Managed from the dashboard's 3D Models tab. |
GET /api/status | you (x-admin-key) | Real-time environment checklist and recent webhook fulfillment runs. |
POST /api/test-order | you (x-admin-key) | Simulates full order pipeline with placeholder design in Paris. |
POST /api/theme-build | you (x-admin-key) | Validates and compiles patched Shopify Liquid layout into Vercel Blob. |
| Name | Value |
|---|---|
PRINTIFY_TOKEN | Printify personal access token |
ADMIN_KEY | Your own random string (admin endpoints) |
BLOB_READ_WRITE_TOKEN | Added automatically when you connect a Blob store (Storage tab → Create → Blob → connect to this project) |
ALLOWED_ORIGINS | https://orican-41i0abev.myshopify.com (+ your custom domain later, comma-separated) |
SHOPIFY_WEBHOOK_SECRET | Signing secret from Shopify admin → Settings → Notifications → Webhooks |
AUTO_PRODUCTION | Optional. true to send orders straight to production |
npm install
vercel env add ALLOWED_ORIGINS production
vercel deploy --prod
# run setup (creates the Printify drafts) and save the report
$h = @{ "x-admin-key" = "<ADMIN_KEY>" }
Invoke-RestMethod -Method Post -Uri "https://orican-printify.vercel.app/api/setup" -Headers $h -TimeoutSec 180 |
ConvertTo-Json -Depth 10 | Out-File setup.json -Encoding utf8
Shopify admin → Settings → Notifications → Webhooks → Create webhook:
event Order payment, format JSON, URL https://orican-printify.vercel.app/api/shopify-order.
Copy the signing secret shown on that page into SHOPIFY_WEBHOOK_SECRET, then redeploy.