File tree Expand file tree Collapse file tree 4 files changed +47
-33
lines changed
examples/e2e/app-router/e2e Expand file tree Collapse file tree 4 files changed +47
-33
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @opennextjs/cloudflare " : patch
3+ ---
4+
5+ fix: trailing slash redirect
Original file line number Diff line number Diff line change 11import { expect , test } from "@playwright/test" ;
22
3- // trailingSlash redirecting doesn't work: https://github.com/opennextjs/opennextjs-cloudflare/issues/312
4- test . skip ( "trailingSlash redirect" , async ( { page } ) => {
3+ test ( "trailingSlash redirect" , async ( { page } ) => {
54 const response = await page . goto ( "/ssr/" ) ;
65
76 expect ( response ?. request ( ) . redirectedFrom ( ) ?. url ( ) ) . toMatch ( / \/ s s r \/ $ / ) ;
87 expect ( response ?. request ( ) . url ( ) ) . toMatch ( / \/ s s r $ / ) ;
98} ) ;
109
11- // trailingSlash redirecting doesn't work: https://github.com/opennextjs/opennextjs-cloudflare/issues/312
12- test . skip ( "trailingSlash redirect with search parameters" , async ( { page } ) => {
10+ test ( "trailingSlash redirect with search parameters" , async ( { page } ) => {
1311 const response = await page . goto ( "/ssr/?happy=true" ) ;
1412
1513 expect ( response ?. request ( ) . redirectedFrom ( ) ?. url ( ) ) . toMatch ( / \/ s s r \/ \? h a p p y = t r u e $ / ) ;
Original file line number Diff line number Diff line change 7373 "dependencies" : {
7474 "@ast-grep/napi" : " ^0.34.1" ,
7575 "@dotenvx/dotenvx" : " catalog:" ,
76- "@opennextjs/aws" : " https://pkg.pr.new/@opennextjs/aws@718 " ,
76+ "@opennextjs/aws" : " https://pkg.pr.new/@opennextjs/aws@722 " ,
7777 "enquirer" : " ^2.4.1" ,
7878 "glob" : " catalog:" ,
7979 "ts-morph" : " catalog:" ,
You can’t perform that action at this time.
0 commit comments