diff --git a/README.md b/README.md index 490501e13..9c198dbf5 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ async rewrites() { Once you deploy your project, the subpath installation should work successfully. +Note: If you are updating your environment variables in Vercel, make sure to manually redeploy to see the changes. + #### Cloudflare In case you are using Cloudflare in proxy mode (orange cloud on), you can deploy the following worker script and map it to `yourdomain.com/*`: @@ -124,6 +126,10 @@ async function proxyBlog(request) { } ``` +After the above step is done, follow these steps to add the worker route: +- Go to `Websites` then click on your website and select `Worker Routes` from the left pane. +- Click on `Add route` and add `https://yourdomain/*` , then select the worker you just added above and click `Save`. +- Go to `https://yourdomain/yoursubpath` and now you should be able to see your blogs. Be sure to replace the values of `subpath` and `blogBaseUrl` in the above code snippet. This way cloudflare will proxy all the requests starting with `yourdomain.com/blog` to your headless blog, and other requests will hit your origin as usual.