feat: enhance SSR and web applications with manifest injection and configuration updates

- Introduced a Vite plugin to inject the photos manifest into the HTML, enabling dynamic updates and hot reloading.
- Updated ESLint configuration to ignore build errors during SSR.
- Modified package.json scripts for concurrent development of SSR and web applications.
- Adjusted paths and imports for better module resolution and consistency across the codebase.
- Added type definitions for the global __MANIFEST__ variable to ensure type safety.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-06-26 22:03:04 +08:00
parent 19f4202656
commit 91897b6032
19 changed files with 550 additions and 27 deletions

View File

@@ -1,4 +1,5 @@
// @ts-check
import { globalIgnores } from 'eslint/config'
import { defineConfig } from 'eslint-config-hyoban'
import checkI18nJson from './plugins/eslint/eslint-check-i18n-json.js'
@@ -60,4 +61,5 @@ export default defineConfig(
'@stylistic/jsx-self-closing-comp': 'error',
},
},
globalIgnores(['apps/ssr/src/index.html.ts']),
)