chore(brand): rename the product to ReplyPier
The upstream project name is gone from code, assets, docs and build
output: brand strings, domains (replypier.site and its app/api/docs/help
subdomains), env prefixes, image and network names, the widget's public
JS API (window.ReplyPier, replypierId/BaseUrl/Config/Token), CSS tokens
(--rp-*), file and directory names, and the WordPress plugin package.
- widget loader is now webclient/replypier.min.js; both bundles rebuilt
from source (backend/assets/widget.{js,css}, frontend/public/webclient)
- NOTICE, llms.txt, CONTRIBUTING, HELP_CENTER_INFRA and config.dev.js
rewritten rather than string-swapped; the demo config no longer ships
the previous vendor's Firebase/Razorpay/Google keys
- new migration replypier_ai_model_001 adds REPLYPIER to the managed
AIModelType and rewrites pre-rename rows
- local compose project, database, role and volume renamed; LOCAL_DEPLOY
documents carrying the old local data over
This commit is contained in:
1 parent
ff0a09f0e5
commit
54b949b392
1156 files changed
+7292
-7147
No files matched your search
@@ -0,0 +1,34 @@
|
||||
import express from "express";
|
||||
import { fileURLToPath } from "url";
|
||||
import { dirname, join } from "path";
|
||||
import cors from "cors";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
// This server only hosts the test pages. The widget loader is NOT kept here — the
|
||||
// pages load it from the frontend origin (vite dev server locally, the dashboard
|
||||
// origin in production), exactly like the embed snippet the dashboard generates.
|
||||
// A copy in this folder would go stale and silently test an old widget.
|
||||
const FRONTEND_ORIGIN = process.env.FRONTEND_ORIGIN || "http://localhost:5173";
|
||||
|
||||
// Enable CORS for the widget script
|
||||
app.use(cors());
|
||||
|
||||
// Serve static files
|
||||
app.use(express.static(__dirname));
|
||||
|
||||
// Serve index.html
|
||||
app.get("/", (req, res) => {
|
||||
res.sendFile(join(__dirname, "index.html"));
|
||||
});
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Test server running at http://localhost:${port}`);
|
||||
console.log(`UI options gallery: http://localhost:${port}/ui-options.html`);
|
||||
console.log(`Widget loader from: ${FRONTEND_ORIGIN}/webclient/replypier.min.js`);
|
||||
console.log(`(rebuild it after loader changes: cd ../frontend && npm run build:webclient:prod)`);
|
||||
});
|
||||
Reference in new issue
Block a user