Remove unused redirects from the Next.js configuration and update package dependencies to include new Tiptap extensions for enhanced text editing capabilities. Clean up the database seeding script by removing commented-out code and ensuring proper deletion of obsolete entries. Update various pages to handle not found scenarios gracefully, improving user experience across the application.
This commit is contained in:
1 parent
4b84409ed7
commit
2858b9c746
106 files changed
+2516
-1004
No files matched your search
+8
-3
@@ -28,10 +28,15 @@ async function readJson(res) {
|
||||
async function main() {
|
||||
console.log(`Smoke: ${BASE}`);
|
||||
|
||||
for (const path of ["courses", "programs", "events", "articles"]) {
|
||||
const res = await fetch(`${BASE}/api/${path}`);
|
||||
{
|
||||
const res = await fetch(`${BASE}/api/courses`);
|
||||
const { status, json } = await readJson(res);
|
||||
check(`GET /api/${path}`, status === 200 && Array.isArray(json.data), `status=${status}`);
|
||||
check("GET /api/courses", status === 200 && Array.isArray(json.data), `status=${status}`);
|
||||
}
|
||||
|
||||
for (const path of ["programs", "events", "articles"]) {
|
||||
const res = await fetch(`${BASE}/api/${path}`);
|
||||
check(`GET /api/${path} disabled`, res.status === 404, `status=${res.status}`);
|
||||
}
|
||||
|
||||
if (!ADMIN_EMAIL || !ADMIN_PASSWORD) {
|
||||
|
||||
Reference in new issue
Block a user