title: Load directory in Zeit Now Serverless Function
body: <p>I am building a Zeit Now Serverless Function that will serve an Apple Wallet Pass using the <a href="https://www.npmjs.com/package/@walletpass/pass-js" rel="nofollow noreferrer">pass-js</a> library. I pass is a folder like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>const template = await passkit.Template.load(
   path.resolve("pages/api/template/")
  );
  </code></pre>
  
  <p>It works great in local development but I get the ENOENT error on the server:</p>
  
  <pre><code>2020-01-30T20:57:54.878Z    c40c9174-8e91-4f24-89ca-e53ab5b360ea    ERROR    [Error: ENOENT: no such file or directory, scandir '/var/task/pages/api/template'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'scandir',
    path: '/var/task/pages/api/template'
  }
  </code></pre>
  
  <p>I've tried to add <code>IncludeFiles</code> configuration to the <code>now.json</code> file but it didn't help.</p>
  
  <pre><code>"functions": {
      "pages/api/wallet.js": {
        "includeFiles": "template/**"
      }
  }
  </code></pre>
  
  <p>Can anyone help me? </p>