Release v1.2.0
🚀 Manual Release v1.2.0
This release was created manually via GitHub Actions.
🐳 Docker Image
docker pull ictrun/i18n_blog:v1.2.0🔗 Quick Deploy
# One-click deployment
curl -sSL https://raw.githubusercontent.com/xuemian168/i18n_blog/main/deploy-from-hub.sh | bash
# Or with specific version
docker run -d \
--name i18n_blog \
-p 80:80 \
-v blog-data:/app/data \
-e NEXT_PUBLIC_API_URL=https://your-domain.com/api \
ictrun/i18n_blog:v1.2.0📋 Build Information
- Version: 1.2.0
- Build Date:
- Git Commit:
- Workflow Run: 25
Detail
🔗 URL Generation Fix
• Issue: getBaseUrl() returned backend API hostnames.
• Solution: Added new getSiteUrl() logic:
• On browser: use window.location
• On server: use NEXT_PUBLIC_SITE_URL or derived base
⸻
🛠️ Build System Fixes
🧩 Tailwind CSS v4 Compatibility
• Fixes:
• Updated tailwind.config.js with proper color mappings
• Registered custom CSS variables
• Resolved bg-muted class issue
🧪 TypeScript & ESLint
• Fixed:
• require() violations
• navigator.share type inference
• Mixed module import issues
⸻
📁 File Changes Summary
➕ New Files
• /embed/[id]/page.tsx
• /embed/[id]/embed-client.tsx
• /components/embed-code-generator.tsx
• /components/social-share.tsx
• /components/share-bar.tsx
• /components/quick-share.tsx
• tailwind.config.js
✳️ Major Updates
• middleware.ts: Embed routes bypass i18n middleware
• routes.go: Updated CORS rules
• nginx.conf: Added embed support
• utils.ts: Added getSiteUrl() helper
• i18n JSON: Added share/embed keys
• article-diff-editor.tsx: Resolved render loop