Skip to content

Commit

Permalink
fix: urlBase 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Nov 20, 2019
1 parent ce5cb2d commit d1e87dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gateway/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const createKoaApp = (surgioServer: SurgioServer): SurgioKoaApplication =
export const createSurgioServer = (cwd: string): SurgioServer => {
const configFile = path.join(cwd, 'surgio.conf.js');
const config = loadConfig(cwd, configFile, {
...(process.env.NODE_ENV !== 'production' ? {
...(['development', 'test'].indexOf(process.env.NODE_ENV) > -1 ? {
urlBase: '/get-artifact/',
} : null),
});
Expand Down

0 comments on commit d1e87dd

Please sign in to comment.