# Serverless Node.js Starter

**URL:** <https://discourse.sst.dev/t/serverless-node-js-starter/22>\
**Category:** Chapter Comments\
**Created:** [May 9, 2018, 6:39pm UTC](https://discourse.sst.dev/t/serverless-node-js-starter/22 "2018-05-09T18:39:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anomalyinnovations](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/anomalyinnovations/32/10_2.png) [@anomalyinnovations](https://discourse.sst.dev/u/anomalyinnovations)\
**Post date:** [May 9, 2018, 6:39pm UTC](https://discourse.sst.dev/t/serverless-node-js-starter/22/1 "2018-05-09T18:39:07Z")

</div>

_From @jayair on Mon Apr 10 2017 01:11:24 GMT+0000 (UTC)_  
  
Link to chapter - [http://serverless-stack.com/chapters/serverless-es7-service.html](http://serverless-stack.com/chapters/serverless-es7-service.html)  
  
_Copied from original issue: [https://github.com/AnomalyInnovations/serverless-stack-com/issues/72](https://github.com/AnomalyInnovations/serverless-stack-com/issues/72)_

---

<div class="post-metadata">

**Author:** ![mathewgries](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/mathewgries/32/419_2.png) [@mathewgries](https://discourse.sst.dev/u/mathewgries)\
**Post date:** [March 5, 2019, 1:10am UTC](https://discourse.sst.dev/t/serverless-node-js-starter/22/2 "2019-03-05T01:10:57Z")

</div>

The comment’s link for the previous chapter, Connect to API Gateway with IAM Auth, redirects to a page with a message:  
“Oops! That page doesn’t exist or is private.”

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [March 11, 2019, 8:15pm UTC](https://discourse.sst.dev/t/serverless-node-js-starter/22/3 "2019-03-11T20:15:45Z")

</div>

Good catch! Thanks for pointing it out. Fixed.

---

<div class="post-metadata">

**Author:** ![Ddaversa](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Ddaversa](https://discourse.sst.dev/u/Ddaversa)\
**Post date:** [April 29, 2020, 3:36pm UTC](https://discourse.sst.dev/t/serverless-node-js-starter/22/4 "2020-04-29T15:36:22Z")

</div>

I’m trying to add relative module paths to my functions, so that I could write

```
import dynamodb from ‘libs/dynamodb’

```

Instead of

```
import dynamodb from ‘../../libs/dynamodb’

```

Is there any way to add a configuration for relative module paths? For instance, in pure webpack, we would write the following:

```
const path = require('path');

module.exports = {
  resolve: {
    alias: {
      libs: path.resolve(__dirname, '../../libs'),
    }
  }
};

```

I’ve tried webpack.config.js, which gets ignored. I tried configuring severless-webpack in serverless.yml, but serverless-bundle won’t allow it. Anyone knows how this could work?

Thanks…

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [May 3, 2020, 1:32am UTC](https://discourse.sst.dev/t/serverless-node-js-starter/22/5 "2020-05-03T01:32:59Z")

</div>

Yup, exactly. You’ll need to use serverless-webpack directly for that. There were some discussions of adding this to serverless-bundle. But it’s still ongoing.
