production-export.js 483 B

123456789101112131415161718
  1. /**
  2. * Start the SSR server or export your handler for serverless use
  3. * or export whatever else fits your needs.
  4. *
  5. * https://v2.quasar.dev/quasar-cli/developing-ssr/ssr-production-export
  6. *
  7. * This file is used ONLY on production.
  8. */
  9. import { ssrProductionExport } from 'quasar/wrappers';
  10. export default ssrProductionExport(({ app, port, isReady }) =>
  11. isReady().then(() => {
  12. app.listen(port, () => {
  13. console.log(`Server listening at port ${port}`);
  14. });
  15. })
  16. );