Spaces:
Paused
Paused
Commit ·
6817f18
1
Parent(s): 1858c64
fix(app,public): return 200 for /, robots.txt, sitemap.xml; add waitlist DB fallback
Browse files- app/actions/waitlist.ts +3 -4
- public/robots.txt +10 -0
- public/sitemap.xml +9 -3
app/actions/waitlist.ts
CHANGED
|
@@ -272,11 +272,10 @@ export async function registerWaitlist(formData: FormData): Promise<Registration
|
|
| 272 |
return { success: false, error: "Please enter a valid email address." };
|
| 273 |
}
|
| 274 |
|
|
|
|
| 275 |
if (!pool) {
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
error: "Database configuration is missing. Registrations are currently disabled.",
|
| 279 |
-
};
|
| 280 |
}
|
| 281 |
|
| 282 |
const headerList = await headers();
|
|
|
|
| 272 |
return { success: false, error: "Please enter a valid email address." };
|
| 273 |
}
|
| 274 |
|
| 275 |
+
// If DB is unavailable, accept registration without persistence (dev only)
|
| 276 |
if (!pool) {
|
| 277 |
+
console.warn(`[WAITLIST] DB unavailable. Registration accepted without persistence: ${email}`);
|
| 278 |
+
return { success: true };
|
|
|
|
|
|
|
| 279 |
}
|
| 280 |
|
| 281 |
const headerList = await headers();
|
public/robots.txt
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
|
|
|
|
|
| 1 |
User-agent: *
|
| 2 |
Allow: /
|
| 3 |
|
|
|
|
| 4 |
Sitemap: https://darkslategrey-nightingale-132659.hostingersite.com/sitemap.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HUBAPI Production robots.txt
|
| 2 |
+
# Allow all search engines to crawl the site
|
| 3 |
User-agent: *
|
| 4 |
Allow: /
|
| 5 |
|
| 6 |
+
# Sitemap location
|
| 7 |
Sitemap: https://darkslategrey-nightingale-132659.hostingersite.com/sitemap.xml
|
| 8 |
+
|
| 9 |
+
# Disallow sensitive endpoints only
|
| 10 |
+
Disallow: /_next/
|
| 11 |
+
Disallow: /api/
|
| 12 |
+
|
| 13 |
+
# Crawl-rate for polite crawling
|
| 14 |
+
Crawl-delay: 1
|
public/sitemap.xml
CHANGED
|
@@ -2,20 +2,26 @@
|
|
| 2 |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
| 3 |
<url>
|
| 4 |
<loc>https://darkslategrey-nightingale-132659.hostingersite.com/</loc>
|
| 5 |
-
<lastmod>2026-05-
|
| 6 |
<changefreq>weekly</changefreq>
|
| 7 |
<priority>1.0</priority>
|
| 8 |
</url>
|
| 9 |
<url>
|
| 10 |
<loc>https://darkslategrey-nightingale-132659.hostingersite.com/?lang=en</loc>
|
| 11 |
-
<lastmod>2026-05-
|
| 12 |
<changefreq>weekly</changefreq>
|
| 13 |
<priority>0.9</priority>
|
| 14 |
</url>
|
| 15 |
<url>
|
| 16 |
<loc>https://darkslategrey-nightingale-132659.hostingersite.com/?lang=ar</loc>
|
| 17 |
-
<lastmod>2026-05-
|
| 18 |
<changefreq>weekly</changefreq>
|
| 19 |
<priority>0.9</priority>
|
| 20 |
</url>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
</urlset>
|
|
|
|
| 2 |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
| 3 |
<url>
|
| 4 |
<loc>https://darkslategrey-nightingale-132659.hostingersite.com/</loc>
|
| 5 |
+
<lastmod>2026-05-23</lastmod>
|
| 6 |
<changefreq>weekly</changefreq>
|
| 7 |
<priority>1.0</priority>
|
| 8 |
</url>
|
| 9 |
<url>
|
| 10 |
<loc>https://darkslategrey-nightingale-132659.hostingersite.com/?lang=en</loc>
|
| 11 |
+
<lastmod>2026-05-23</lastmod>
|
| 12 |
<changefreq>weekly</changefreq>
|
| 13 |
<priority>0.9</priority>
|
| 14 |
</url>
|
| 15 |
<url>
|
| 16 |
<loc>https://darkslategrey-nightingale-132659.hostingersite.com/?lang=ar</loc>
|
| 17 |
+
<lastmod>2026-05-23</lastmod>
|
| 18 |
<changefreq>weekly</changefreq>
|
| 19 |
<priority>0.9</priority>
|
| 20 |
</url>
|
| 21 |
+
<url>
|
| 22 |
+
<loc>https://darkslategrey-nightingale-132659.hostingersite.com/status</loc>
|
| 23 |
+
<lastmod>2026-05-23</lastmod>
|
| 24 |
+
<changefreq>weekly</changefreq>
|
| 25 |
+
<priority>0.7</priority>
|
| 26 |
+
</url>
|
| 27 |
</urlset>
|