This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Notion migrations not working in when served by Netlify. (#8960)
Found why the redirections are not working in prod. In local, NextJS handles the redirections (logical), but in prod, we let Netlify do it (logical, as it's serving static content). But, the semantics in between the two are not the same: - NextJS sets up the redirection "normally" - Netlify instead, will flat out ignore the redirection if the page exists. So the fix was to patch the code that generates the `_redirects` file that Netlify needs, to add the `301!` in `/source https://where 301!` required for it to stop ignoring those. I really didn't see coming the different semantics here :/ --------- Co-authored-by: jhchabran <[email protected]>
- Loading branch information
Showing
3 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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