We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2dc322 commit 24b62b7Copy full SHA for 24b62b7
src/common/common.utils.ts
@@ -197,7 +197,7 @@ export function setRelativeServerLocation(location: string): ExegesisPlugin {
197
return {
198
//preRouting:(ctx)=>{}
199
postRouting: (ctx: ExegesisPluginContext) => {
200
- let url = `${ctx.req.protocol || "https"}://${ctx.req.headers.host}/${location}`
+ let url = `${process.env.NODE_ENV === "production" ? "https" : (ctx.req.protocol || "https")}://${ctx.req.headers.host}/${location}`
201
ctx.api.serverObject = {
202
url,
203
description: `Auto-generated server root`
0 commit comments