title: Nuxt ssr with firebase hosting and functions
body: <p>I created my app with nuxt, and I want to deploy by Firebase hosting.</p>
  
  <p>So I edit my <strong>firebase.json</strong></p>
  
  <pre><code>{
    "hosting": {
      "public": "./",
      "ignore": [
        "firebase.json",
        "testssr.js",
        "node_modules/**",
        "/plugins/**",
        ...
      ],
      "rewrites": [
        {
          "source": "**/**",
          "function": "render"
        }
      ]
    }
  }
  </code></pre>
  
  <p>And create a function <strong>render</strong></p>
  
  <pre><code>let app = express();
  let config = {
    dev: false
  }
  
  const nuxt = new Nuxt(config)
  app.use(nuxt.render)
  
  exports.render = functions.https.onRequest(app)
  </code></pre>
  
  <p>But, it doesn't work and I can't find any error.</p>
  
  <p>When I create an express app, it works.</p>
  
  <pre><code>const config = {
    dev: false
  }
  
  const nuxt = new Nuxt(config)
  
  app.use(nuxt.render)
  
  app.listen(3000, ()=&gt;{
    console.log('works')
  })
  </code></pre>