Skip to content

Commit

Permalink
fix: Modify the correct startup file
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwa committed May 19, 2022
1 parent 5c6cfaa commit cc74065
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ try {
if (!process.env.PROT) process.env.PROT = quasarConfig.ssr.prodProd as any;
if (!process.env.NODE_ENV) process.env.NODE_ENV = 'production';

listener = require(path.join(__dirname, quasarConfig.build.distDir));
listener = require(path.join(
__dirname,
quasarConfig.build.distDir,
'index.js'
));
if (listener.default) listener = listener.default;
if (typeof listener !== 'function' && listener.handler)
listener = listener.handler;
Expand Down

0 comments on commit cc74065

Please sign in to comment.