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 6411c2c commit 5420443Copy full SHA for 5420443
src/commands/launch/functions.ts
@@ -29,6 +29,8 @@ export default class Functions extends Command {
29
const currentWorkingDirectory = process.cwd();
30
const projectBasePath = flags['data-dir'] || currentWorkingDirectory;
31
32
- await new Contentfly(projectBasePath).serveCloudFunctions(+flags.port);
+ const port = process.env.PORT || flags.port;
33
+
34
+ await new Contentfly(projectBasePath).serveCloudFunctions(port);
35
}
36
0 commit comments