Skip to content

Restore react migration - #115

Open
jessisena wants to merge 4 commits into
masterfrom
restore-react-migration
Open

Restore react migration#115
jessisena wants to merge 4 commits into
masterfrom
restore-react-migration

Conversation

@jessisena

@jessisena jessisena commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Recuperados cambios de #92 y #93 , anadido fix en el routing para github pages y netlify

jessisena and others added 3 commits August 18, 2026 23:09
The rollback in #96 was caused by a vite.config.js shadowing vite.config.ts,
which broke asset paths and module resolution. That root cause is addressed in
the following commit. This restores all 58 files from the React migration.

Dependency updates on top of the restored state:
- vite: ^6.3.1 → ^8.1.2 (keeping master's security bumps)
- @vitejs/plugin-react: ^4.2.0 → ^6.0.5 (Vite 8 peer requirement)
- vitest: ^1.3.0 → ^4.1.11 (Vite 8 compatibility + critical CVE fix)
- remove @eslint/css (not used in the TypeScript eslint config)

Two moderate react-router CVEs remain; fixing them requires upgrading to
react-router-dom v7, which is a breaking API change — separate follow-up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WtwNJovJbV7nc3LSWHisHB
Replaces __dirname with import.meta.dirname, which Vite 8 recommends
when using the native config loader. tsconfig.node.json already uses
moduleResolution: bundler which supports import.meta.dirname.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WtwNJovJbV7nc3LSWHisHB
@netlify

netlify Bot commented Aug 18, 2026

Copy link
Copy Markdown

Deploy Preview for geochicasosm-lascallesdelasmujeres ready!

Name Link
🔨 Latest commit b0de0e5
🔍 Latest deploy log https://app.netlify.com/projects/geochicasosm-lascallesdelasmujeres/deploys/6a84cf0f9218e60008e21866
😎 Deploy Preview https://deploy-preview-115--geochicasosm-lascallesdelasmujeres.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

vite.config.ts reads VITE_BASE_PATH env var at build time (defaults to
/lascallesdelasmujeres/ for GitHub Pages). BrowserRouter basename is
driven by import.meta.env.BASE_URL so it can never drift from the asset
paths. netlify.toml sets VITE_BASE_PATH=/ and adds a /* -> /index.html
200-rewrite so deep links work on Netlify previews.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WtwNJovJbV7nc3LSWHisHB
@jessisena

Copy link
Copy Markdown
Collaborator Author

@jsanz @fpsampayo podriais echar un ojo antes de hacer el merge esta vez?

Gracias!

@jessisena
jessisena marked this pull request as ready for review August 18, 2026 21:43
@jessisena
jessisena requested review from fpsampayo and jsanz August 18, 2026 21:43
@jsanz

jsanz commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

@clds1 @mapanauta podéis echarle un vistazo al preview de la actualización de la web y darnos vuestro OK?

Fijaros en las diferencias y en la nueva página con estadísticas. Tal vez mejor hacer esto en un ordenador, no desde el móvil que será más complicado de comparar con la web en producción.

Preview: https://deploy-preview-115--geochicasosm-lascallesdelasmujeres.netlify.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants