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 1
1
import { expect , test } from "@playwright/test" ;
2
2
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 } ) => {
5
4
const response = await page . goto ( "/ssr/" ) ;
6
5
7
6
expect ( response ?. request ( ) . redirectedFrom ( ) ?. url ( ) ) . toMatch ( / \/ s s r \/ $ / ) ;
8
7
expect ( response ?. request ( ) . url ( ) ) . toMatch ( / \/ s s r $ / ) ;
9
8
} ) ;
10
9
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 } ) => {
13
11
const response = await page . goto ( "/ssr/?happy=true" ) ;
14
12
15
13
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 73
73
"dependencies" : {
74
74
"@ast-grep/napi" : " ^0.34.1" ,
75
75
"@dotenvx/dotenvx" : " catalog:" ,
76
- "@opennextjs/aws" : " https://pkg.pr.new/@opennextjs/aws@718 " ,
76
+ "@opennextjs/aws" : " https://pkg.pr.new/@opennextjs/aws@722 " ,
77
77
"enquirer" : " ^2.4.1" ,
78
78
"glob" : " catalog:" ,
79
79
"ts-morph" : " catalog:" ,
You can’t perform that action at this time.
0 commit comments