Merged
Conversation
Add CloudFront Functions to rewrite directory URLs to include index.html. This fixes 404 errors on pages like /meetups/, /comunidad/ponentes/, etc. Changes: - Add CloudFront Function for production and staging environments - Associate functions with default cache behavior on distributions - Add comprehensive documentation in FIX_404_ERRORS.md The solution uses CloudFront Functions to intercept viewer requests and automatically append index.html to URLs ending with / or without file extensions, enabling MkDocs directory URLs to work correctly with S3/CloudFront. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Merge changes from staging branch and fix the URL rewriting logic to correctly handle MkDocs directory URLs. Changes: - Merge staging branch (commits a111f61, e9b294a) - Remove duplicate cloudfront-function.tf (use unified url_rewrite function) - Fix url_rewrite function: change '.html' to '/index.html' for URLs without extension - Update documentation to reflect correct behavior - Integrate mkdocs.yml changes from staging The corrected logic now properly handles MkDocs use_directory_urls: - /meetups → /meetups/index.html (was incorrectly /meetups.html) - /meetups/ → /meetups/index.html (already correct) This ensures all directory URLs work correctly in both production and staging. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Descripción
Breve descripción de los cambios realizados en este PR.
🎯 Tipo de Cambio
🔗 Issues Relacionados
Closes #[número del issue]
Relacionado con #[número del issue]
📋 Cambios Realizados
🧪 Pruebas Realizadas
mkdocs build)mkdocs serve)📸 Capturas de Pantalla
Si este PR incluye cambios visuales, incluye capturas de pantalla:
Antes
Después
🔍 Checklist
📝 Notas Adicionales
Agrega cualquier contexto adicional sobre el PR aquí.
🤝 ¿Necesitas ayuda?
Si tienes preguntas sobre este PR o necesitas ayuda, no dudes en preguntar en los comentarios.
Gracias por contribuir a Python CDMX Charlas! 🐍