2025-11-18 11:13:03 +05:30
|
|
|
{
|
|
|
|
|
"headers": [
|
|
|
|
|
{
|
|
|
|
|
"source": "**/*",
|
|
|
|
|
"headers": [
|
|
|
|
|
{
|
|
|
|
|
"key": "Cross-Origin-Opener-Policy",
|
|
|
|
|
"value": "same-origin"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "Cross-Origin-Embedder-Policy",
|
|
|
|
|
"value": "require-corp"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "X-Frame-Options",
|
|
|
|
|
"value": "SAMEORIGIN"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "X-Content-Type-Options",
|
|
|
|
|
"value": "nosniff"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
feat(i18n): add static pre-rendering for multi-language support
- Add `generate-i18n-pages.mjs` script to pre-render localized HTML files at build time
- Add `generate-sitemap.mjs` script to generate language-aware sitemap.xml
- Create `navbar-simple.html` and `footer-simple.html` partials for simple mode
- Update all 80+ tool pages with language routing support
- Expand supported languages to 12: en, de, es, fr, it, pt, tr, vi, id, zh, zh-TW
- Update i18n.ts with new language names and support configuration
- Implement languageRouterPlugin in vite.config.ts for dev server routing
- Update nginx.conf for production static file serving from language directories
- Update TRANSLATION.md with new architecture documentation and language addition guide
- Fix relative paths in 404.html for static deployment compatibility
- Update package.json with new build scripts and dependencies
- Improves SEO through static pre-rendering and proper sitemap generation
2026-01-14 21:04:56 +05:30
|
|
|
],
|
|
|
|
|
"rewrites": [
|
|
|
|
|
{
|
|
|
|
|
"source": "/{lang}/**",
|
|
|
|
|
"destination": "/{lang}/index.html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"source": "**",
|
|
|
|
|
"destination": "/index.html"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"cleanUrls": true,
|
|
|
|
|
"trailingSlash": false
|
2025-11-18 11:13:03 +05:30
|
|
|
}
|