-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow APP_BASE to be an empty string when setting cookies
- I originally set APP_BASE to '/' instead of '' because setting cookies requires the slash and I wanted to reuse the APP_BASE env var when setting cookies - However, this seems to cause problems with svelte which doesn't allow APP_BASE to end in a slash (even if it's just a single slash): see https://svelte.dev/docs/kit/configuration#paths - Changed the logic so that APP_BASE can be '' if desired and when setting cookies, we just set the path to '/' if APP_BASE is ''
- Loading branch information
1 parent
9935f4f
commit 1f1c799
Showing
4 changed files
with
6 additions
and
6 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
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