SSR Deployment with Now



  • Hi,
    I created a sample project with quasar create <pr>, and locally all is perfect. Now, I’m trying to learn how to do a simple SSR or even SPA deployment, by following the instructions, but once deployed I get errors, and no luck to get application going.

    The error:

    502
    Type: NO_STATUS_CODE_FROM_LAMBDA
    
    The Lambda responsible for the path you tried to access did not reply with a status code.
    

    Does anyone have a sample of now.json or some advice what am I doing wrong?

    My now.json:

    {
      "version": 2,
      "builds": [
        { "src": "index.js", "use": "@now/node" }
    
      ],
      "routes": [{ "src": "/", "dest": "index.js" }]
    }
    

    Thanks


  • Admin

    Use “Now” version 1 deployment.



  • Thanks Razvan, still complains, but maybe because I installed the latest version of “Now”:

    > Error! You tried to create a Now 1.0 deployment. Please use Now 2.0 instead: https://zeit.co/upgrade
    

    Is there maybe a sample of deploying directly to AWS through Serverless?

    Thanks