Skip to content

Commit

Permalink
update @experimental-app-router for handle trailing slash config (#1815)
Browse files Browse the repository at this point in the history
* update @experimental-app-router for handle trailing slash config

* changeset

* Update changeset

* Update changeset

---------

Co-authored-by: John Parris <john.parris@wpengine.com>
  • Loading branch information
fx69005 and mindctrl committed Mar 11, 2024
1 parent 9a43d50 commit aee31a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-stingrays-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@faustwp/experimental-app-router': patch
---

Fixed issue where Faust's route handler failed to retrieve a token when trailingSlash is set to true in next.config.js.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export async function GetFn(req: Request) {
const { pathname } = new URL(req.url);

switch (pathname) {
case '/api/faust/token/':
case '/api/faust/token': {
return tokenHandler(req);
}
Expand Down

0 comments on commit aee31a5

Please sign in to comment.