# Serverless offline, disable when deploying

**URL:** https://forum.serverless.com/t/serverless-offline-disable-when-deploying/2108
**Category:** Serverless Framework
**Tags:** aws
**Created:** [June 21, 2017, 10:23am UTC](https://forum.serverless.com/t/serverless-offline-disable-when-deploying/2108 "2017-06-21T10:23:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)
#### Post date: [June 22, 2017, 12:00am UTC](https://forum.serverless.com/t/serverless-offline-disable-when-deploying/2108/2 "2017-06-22T00:00:02Z")

</div>

I expect the answer is very similar to per stage environment variables in which case it will be something like:

```auto
custom:
  stage: "${opt:stage, self:provider.stage}"
  plugins:
    dev:
      - serverless-offline
    prod:

plugins: ${self.custom.${self.custom.stage}.plugins}

```

_Note: This hasn’t been tested so it may require a little debugging_

---

_[View the full topic](https://forum.serverless.com/t/serverless-offline-disable-when-deploying/2108)._
