Light-weight reverse proxy implemented by using Cloudflare Workers.
https://example.com/,/about,/pricing,/blog/*, etc.
↳ routed tohttps://example.webflow.iohttps://example.com/help/*
↳ routed tohttps://intercom.helphttps://example.com/graphql,/auth/google,/auth/google/returnetc.
↳ routed to the GraphQL API server (Google Cloud Function or Cloud Run)https://example.com/admin/*
↳ routed to the admin dashboard (Cloudflare Workers Site)https://example.com/*the rest of the pages
↳ routed to the main web application (Cloudflare Workers Site)
$ yarn build # Compile and bundle the code with Babel, WebpackCompile and bundle the code into dist/proxy.js (build), upload application
bundle to Google Cloud Storage (push), and finally, deploy or re-deploy it
to Cloudflare Workers (deploy).
$ yarn run build
$ yarn run push [--version #0]
$ yarn run deploy [--version #0] [--env #0] [--no-download]
Copyright © 2016-present Kriasoft. This source code is licensed under the MIT license found in the LICENSE file.