# Serve, build with different environments

**URL:** <https://forum.ionicframework.com/t/serve-build-with-different-environments/215553>\
**Category:** Ionic Vue\
**Created:** [September 29, 2021, 1:09pm UTC](https://forum.ionicframework.com/t/serve-build-with-different-environments/215553 "2021-09-29T13:09:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmin992](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jasmin992](https://forum.ionicframework.com/u/jasmin992)\
**Post date:** [September 29, 2021, 1:09pm UTC](https://forum.ionicframework.com/t/serve-build-with-different-environments/215553/1 "2021-09-29T13:09:51Z")

</div>

Hello,

Can’t find any documentations of how to serve or build ionic-vue app with different env

I saw there is --configuration flag but don’t know where to put config and how config should look like.

I know i can use npm run serve – --mode staging, but i wonder if there is ionic serve equivalent command.

Also, i am not sure if npm run build gonna produce same results as ionic build.

Best regards
