Skip to content

Commit cae0a91

Browse files
committed
fix: use req.url verbatim
1 parent 2a2da7e commit cae0a91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/runtime/src/templates/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ class NetlifyNextServer extends NextServer {
4040
}
4141

4242
private netlifyRevalidate(url: string) {
43-
const path = new URL(url).pathname
4443
const domain = this.hostname
4544
const siteId = process.env.SITE_ID
4645

4746
return new Promise((resolve, reject) => {
48-
const body = JSON.stringify({ paths: [path], domain })
47+
const body = JSON.stringify({ paths: [url], domain })
4948

5049
const req = https
5150
.request(

0 commit comments

Comments
 (0)