title: How to deploy Nuxt.js(SSR with Express.js) to Vercel via Gitlab?
body: <p>I have successfully built my app and only remain step is deploy to the host <strong>Vercel</strong> via my repo on <strong>Gitlab</strong></p>
  
  <p>I use <strong>Nuxt.js(SSR type)</strong> with server <strong>Express.js</strong> and <a href="https://github.com/nuxt/now-builder" rel="nofollow noreferrer"><strong><code>Nuxt.js Now Builder</code></strong></a> to deploy host Vercel via repo Gitlab </p>
  
  <p><strong>This is structure</strong></p>
  
  <pre><code>api/
  --| index.js
  now.json
  nuxt.config.js
  </code></pre>
  
  <p><strong>In <code>index.js</code></strong></p>
  
  <pre><code>const express = require("express");
  const app = express();
  const bodyParser = require("body-parser");
  const products = require("./routes/product/products");
  
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: true }));
  // Import API Routes
  app.use(products);
  
  // Export the server middleware
  module.exports = {
    path: "/api",
    handler: app
  };
  </code></pre>
  
  <p><strong>In <code>now.json</code></strong></p>
  
  <pre><code>{
      "version": 2,
      "builds": [
          {
              "src": "nuxt.config.js",
              "use": "@nuxtjs/now-builder",
              "config": {
                  "serverFiles": [
                      "package.json"
                  ]
              }
          }
      ]
  }
  </code></pre>
  
  <p><strong>And in <code>nuxt.config.js</code></strong></p>
  
  <pre><code>...
  serverMiddleware: [
      // API middleware
      "~/api/index.js"
    ]
  ...
  </code></pre>
  
  <p>According to <a href="https://vercel.com/docs" rel="nofollow noreferrer">Vercel documentation</a>, deploying is very easy, just commit and push code to Gitlab to complete</p>
  
  <p>However, i always get error as below
  <a href="https://i.stack.imgur.com/4UDtm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4UDtm.png" alt="enter image description here"></a>
  I don't understand why? I don't know what i missed. Please help me and i'm very grateful for the help</p>