Skip to content

Commit

Permalink
fix cloudflare url
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed May 23, 2024
1 parent b4b0eb6 commit 48b1287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/cloudflare.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const purgeCloudFlareCache = async(url) =>{
try {
const response = await axios.post(
`https://api.cloudflare.com/client/v4/zones/${process.env.CLOUDFLARE_API_ZONE}/purge_cache`,
{ files: [url] },
{ files: [`${process.env.NEXT_PUBLIC_HOME_URL}/${url}`] },
{
headers: {
'Authorization': `Bearer ${process.env.CLOUDFLARE_API_TOKEN}`,
Expand Down

0 comments on commit 48b1287

Please sign in to comment.