Add tests for featured thumbnail generation; apply Pint formatting and related edits
This commit is contained in:
@@ -3,9 +3,16 @@ import { createInertiaApp } from '@inertiajs/react'
|
||||
import createServer from '@inertiajs/react/server'
|
||||
import ReactDOMServer from 'react-dom/server'
|
||||
|
||||
// Eagerly import every Inertia page component so the SSR server can resolve
|
||||
// any page name without async dynamic imports (Node.js + Vite SSR requirement).
|
||||
const pages = import.meta.glob(['./Pages/**/*.jsx', '!./Pages/**/*.test.jsx', '!./Pages/**/__tests__/**'], { eager: true })
|
||||
// Eagerly import Inertia page components so the SSR server can resolve any page
|
||||
// name without async dynamic imports (Node.js + Vite SSR requirement).
|
||||
// The standalone homepage is Blade-mounted through @vite, so it stays out of
|
||||
// the SSR graph to avoid duplicate lazy/static imports for its below-fold rails.
|
||||
const pages = import.meta.glob([
|
||||
'./Pages/**/*.jsx',
|
||||
'!./Pages/Home/**/*.jsx',
|
||||
'!./Pages/**/*.test.jsx',
|
||||
'!./Pages/**/__tests__/**',
|
||||
], { eager: true })
|
||||
|
||||
// Lightweight server-only placeholder for pages that must remain client-only.
|
||||
// Returning this prevents an error-level stacktrace while still avoiding
|
||||
|
||||
Reference in New Issue
Block a user