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:
+3
-1
@@ -59,6 +59,7 @@ import { createSSRApp, h } from 'vue'
|
||||
import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m';
|
||||
import { Ziggy } from './ziggy';
|
||||
import { createSsrErrorHandler, logSsrError } from './ssr/errorHandler.js';
|
||||
import { helpers } from './mixins/Helpers.js';
|
||||
|
||||
const EMPTY_RESPONSE = { head: [], body: '' };
|
||||
|
||||
@@ -89,7 +90,8 @@ createServer(page =>
|
||||
|
||||
return ssrApp
|
||||
.use(plugin)
|
||||
.use(ZiggyVue, ziggyConfig);
|
||||
.use(ZiggyVue, ziggyConfig)
|
||||
.mixin(helpers);
|
||||
},
|
||||
}).then(result => result ?? EMPTY_RESPONSE).catch(error => {
|
||||
logSsrError(error);
|
||||
|
||||
Reference in New Issue
Block a user