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.
2 parents 6411c2c + 5420443 commit 8f2f002Copy full SHA for 8f2f002
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