feat: Simplify home page and remove tracking form
- Remove complex tracking form from home page
- Replace with clean 'Analyze URL Redirects' call-to-action button
- Remove announcement badge '🚀 URL Tracker Tool V2 - Now Available'
- Clean up unused imports and form-related code
- Direct users to dedicated /track page for full functionality
- Improve user experience with cleaner, more focused home page
Changes:
- Simplified HomePage component with single CTA button
- Removed form validation, mutation handling, and result display
- Maintained all tracking functionality on /track page
- Professional appearance without promotional clutter
This commit is contained in:
17
apps/api/dist/index.js
vendored
17
apps/api/dist/index.js
vendored
@@ -18,6 +18,7 @@ const tracking_routes_1 = __importDefault(require("./routes/tracking.routes"));
|
||||
const analysis_routes_1 = __importDefault(require("./routes/analysis.routes"));
|
||||
const export_routes_1 = __importDefault(require("./routes/export.routes"));
|
||||
const bulk_routes_1 = __importDefault(require("./routes/bulk.routes"));
|
||||
const projects_routes_1 = __importDefault(require("./routes/projects.routes"));
|
||||
const docs_routes_1 = __importDefault(require("./routes/docs.routes"));
|
||||
const rate_limit_middleware_1 = require("./middleware/rate-limit.middleware");
|
||||
const app = (0, express_1.default)();
|
||||
@@ -34,8 +35,20 @@ app.use((0, helmet_1.default)({
|
||||
}));
|
||||
app.use((0, compression_1.default)());
|
||||
app.use((0, rate_limit_middleware_1.requestLogger)({ redactionLevel: 'partial' }));
|
||||
const allowedOrigins = [
|
||||
'http://localhost:3000',
|
||||
'https://urltrackertool.com',
|
||||
process.env.CORS_ORIGIN
|
||||
].filter(Boolean);
|
||||
app.use((0, cors_1.default)({
|
||||
origin: process.env.CORS_ORIGIN || 'http://localhost:3000',
|
||||
origin: (origin, callback) => {
|
||||
if (!origin)
|
||||
return callback(null, true);
|
||||
if (allowedOrigins.includes(origin)) {
|
||||
return callback(null, true);
|
||||
}
|
||||
return callback(new Error('Not allowed by CORS'));
|
||||
},
|
||||
credentials: true,
|
||||
optionsSuccessStatus: 200
|
||||
}));
|
||||
@@ -55,10 +68,12 @@ app.use('/v2', tracking_routes_1.default);
|
||||
app.use('/v2/analyze', analysis_routes_1.default);
|
||||
app.use('/v2/export', export_routes_1.default);
|
||||
app.use('/v2/bulk', bulk_routes_1.default);
|
||||
app.use('/v2/projects', projects_routes_1.default);
|
||||
app.use('/api/v2', tracking_routes_1.default);
|
||||
app.use('/api/v2/analyze', analysis_routes_1.default);
|
||||
app.use('/api/v2/export', export_routes_1.default);
|
||||
app.use('/api/v2/bulk', bulk_routes_1.default);
|
||||
app.use('/api/v2/projects', projects_routes_1.default);
|
||||
app.use('/', docs_routes_1.default);
|
||||
app.get('/health', (req, res) => {
|
||||
res.json({
|
||||
|
||||
Reference in New Issue
Block a user