Merged in feat/SW-2111 (pull request #1761)
feat(SW-2111): add initial scandic-redirect * feat(SW-2111): add initial scandic-redirect * feat(SW-2112): add scandic-redirect call to middleware * chore: add redirect jsons per lang * fix: handle incorrect contentTypes * fix: handle lang * refactor: add json streaming * refactor: wrap redirect call in cacheOrGet * refactor: review Approved-by: Michael Zetterberg
This commit is contained in:
8
apps/scandic-redirect/README.md
Normal file
8
apps/scandic-redirect/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# scandic-redirect
|
||||
|
||||
Netlify Function to handle redirect URLs for Current web -> New web during go live.
|
||||
|
||||
This function will be called by the `web` app's middleware to check if the incoming request contains a legacy URL that should be redirected.
|
||||
The "source of truth" for which URLs should be redirected where will be provided by the SEO team and put in a JSON file within this app.
|
||||
|
||||
If no match for the incoming request is found, the request is passed on through the middleware.
|
||||
Reference in New Issue
Block a user