Plant-for-the-Planet-org / planet-donations

The Donation Gateway that powers the Plant-for-the-Planet Platform. You can make donations to restoration organizations, plant trees and support forest conservation.
https://donate.plant-for-the-planet.org
Other
7 stars 5 forks source link

Feature/update next version to 13 #387

Closed mohitb35 closed 1 year ago

mohitb35 commented 1 year ago

Updates donate.planet to next 13.

Key changes:

  1. Updates dependencies next, react, react-dom, eslint-config-next and resolves conflicts / breaking changes.
  2. Resolves invalid next config warnings and updates eslint config
  3. Updates next-i18next and updates app to resolve breaking changes
  4. Sets app up for auto detection using sub-path routing e.g. routes containing /de, /fr etc.
  5. Saves user locale preference in NEXT_LOCALE cookie (if explicitly selected from footer menu)
  6. Redirects existing urls containing query param locale to the new routes
  7. Sets up common /auth route to handle redirects after login / logout and take user back to the page they were on
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
donate-with-planet ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 27, 2023 at 7:03AM (UTC)
mariahosfeld commented 1 year ago

Functionality works correctly for me.

norbertschuler commented 1 year ago

I get this warning running npm run lint:

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0
YOUR TYPESCRIPT VERSION: 4.9.5
Please only submit bug reports when using the officially supported version.

This won't happen if upgrading @typescript-eslint, but I think upgrading TypeScript should be another pull request.

mohitb35 commented 1 year ago

I get this warning running npm run lint:

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0
YOUR TYPESCRIPT VERSION: 4.9.5
Please only submit bug reports when using the officially supported version.

This won't happen if upgrading @typescript-eslint, but I think upgrading TypeScript should be another pull request.

Noted, will make a note of that and update in a separate PR after this one is merged.

mariahosfeld commented 1 year ago

Functionalities still work after recent changes.