fix: department page SSR crash rendering empty body on hard reload

- Remove this. prefix from template expression in Departments/Show.vue
  (ssrRender this is undefined in strict ESM)
- Register helpers mixin in ssr.js for parity with app.js
- SafeSsrGateway: fallback to client-side render when SSR returns
  empty body or server unavailable
- Jenkins: start SSR server in background, add health check
This commit is contained in:
F4ilji
2026-10-22 12:33:20 +05:00
parent d6a55ddfbc
commit dbac7989a7
6 changed files with 107 additions and 3 deletions
@@ -16,7 +16,7 @@
<div class="flex gap-x-1">
<ul class="px-0.5 last-of-type:mb-0 mb-8">
<li v-for="depart in departments.data" :key="department.id" class="my-1.5 flex">
<a :class="{'text-white hover:text-gray-200 font-semibold bg-[#135aae]': this.IS_SAME_ROUTE(route('client.department.show', { facultySlug: department.data.faculty.slug, departmentSlug: depart.slug })), 'text-gray-600 hover:text-[#2C6288]': !this.IS_SAME_ROUTE(route('client.department.show', { facultySlug: department.data.faculty.slug, departmentSlug: depart.slug })) }"
<a :class="{'text-white hover:text-gray-200 font-semibold bg-[#135aae]': IS_SAME_ROUTE(route('client.department.show', { facultySlug: department.data.faculty.slug, departmentSlug: depart.slug })), 'text-gray-600 hover:text-[#2C6288]': !IS_SAME_ROUTE(route('client.department.show', { facultySlug: department.data.faculty.slug, departmentSlug: depart.slug })) }"
:href="route('client.department.show', { facultySlug: department.data.faculty.slug, departmentSlug: depart.slug }) + '/'"
class="relative duration-300 flex w-full rounded-md cursor-pointer items-center px-2 py-1 text-left text-sm">{{
depart.title