Skip to content

Commit 58ee815

Browse files
authored
Update RevalidatorService.ts to hit the revalidation service without the fern client (#2252)
1 parent eaa3c82 commit 58ee815

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

servers/fdr/src/services/revalidator/RevalidatorService.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,14 @@ export class RevalidatorServiceImpl implements RevalidatorService {
4747
environment: baseUrl.toURL().toString(),
4848
});
4949
app?.logger.log("Revalidating paths at", baseUrl.toURL().toString());
50-
await client.revalidateAllV3({
51-
host: baseUrl.hostname,
52-
basePath: baseUrl.path != null ? baseUrl.path : "",
53-
xFernHost: baseUrl.hostname,
54-
});
50+
// await client.revalidateAllV3({
51+
// host: baseUrl.hostname,
52+
// basePath: baseUrl.path != null ? baseUrl.path : "",
53+
// xFernHost: baseUrl.hostname,
54+
// });
55+
await fetch(
56+
`https://${baseUrl.hostname}${baseUrl.path || ""}/api/fern-docs/revalidate-all/v3`
57+
);
5558
return {
5659
successful: [],
5760
failed: [],

0 commit comments

Comments
 (0)