Merged in feature/BOOK-401-handle-new-redirects (pull request #2942)

feat(BOOK-401): redirect-service with tests and typings

* Switch to typescript

* add new dependencies for tests and typescript

* Switch to typescript

* add new dependencies for tests and typescript

* rewrite to typescript and include tests

* rewrite to typescript and include tests

* refactor: update README and scripts for CSV handling; rename update script to generate

* include csv-data folder


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-10-10 07:32:32 +00:00
parent 790a5edd95
commit eba6319ebe
23 changed files with 430 additions and 163 deletions

View File

@@ -16,10 +16,10 @@ https://scandichotelsab.sharepoint.com/:x:/s/921-ContentNewweb/ETGStOQAARtJhJXG9
- Open it
- Each domain/language has its own sheet
- Export each sheet into their respective language code
- File > Export > Download as CSV UTF-8
- Save as [lang].csv in `./scripts/csv` folder
- Run the `update` script target
- E.g. `yarn workspace @scandic-hotels/scandic-redirect update`
- File > Export > Download as CSV UTF-8
- Save as [lang].csv in `./scripts/data/csv` folder
- Run the `generate` script target
- E.g. `yarn workspace @scandic-hotels/scandic-redirect generate`
- Commit and push the JSON files in `./netlify/functions/data`.
- Create a PR
- Profit!