大家好,我刚部署了一个 Strapi 和 React 项目,但是我将它们分别进行了托管,这看起来有些奇怪。请问如何将它们部署在同一台主机上?我在网上找不到任何关于这方面的指导。
像这样:
Strapi: https://nuclear-leagcy.herokuapp.com/admin https://nuclear-leagcy.herokuapp.com/graphql React: https://nuclear-leagcy.herokuapp.com 我认为我需要使用 Express 在 server.js 文件中定义应用程序,但当前还没有任何思路。
补充说明: 我想在 production 环境中使用 GraphQL,但不想在生产环境中显示 playground 接口,以免被他人盗用。
请问我该如何实现呢?
像这样:
Strapi: https://nuclear-leagcy.herokuapp.com/admin https://nuclear-leagcy.herokuapp.com/graphql React: https://nuclear-leagcy.herokuapp.com 我认为我需要使用 Express 在 server.js 文件中定义应用程序,但当前还没有任何思路。
补充说明: 我想在 production 环境中使用 GraphQL,但不想在生产环境中显示 playground 接口,以免被他人盗用。
请问我该如何实现呢?