A quick search of the Googles for using dotenv with Nuxt will almost certainly lead you to the Nuxt community module called nuxt . Use express.js with nuxt.js - StackFAME Introducing Nuxt 3 Beta. They are listed from highest to lowest priority. We will define serverMiddleware when we are building in production mode to run the API's. You can find more about the serverMiddleware property here (opens new window). Let's dive in. Let's dive in. HOST = 0 PORT = 8000 npm run dev or create a script in your package.json "scripts": {"dev:host": "nuxt --hostname '0' --port 8000"} Asynchronous Configuration . The nuxt development team decided to make life easier for us by writing an additional add-on for vuex, which helps to write less code and therefore fewer bugs. Nuxt.js | Commerce.js docs Now instead of typing localhost to see your application you will type your local IP address. When your load test is finished, you should see something like this. The aim of this post is to get you setup using Netlify functions and FaunaDB, and to show you how you can leverage these tools to build a dynamic "like" counter for your personal Nuxt blog. Learn how to use the Axios module with a short video lesson. Go to the ConfigureServices method . export default { srcDir: "client/" } Set your build directory to be inside client directory. Below is the video and code discussed in the video. Add the following to your nuxt.config.js: To add a module to the nuxt repository, it is enough to create a new file in the store folder, in which variables, actions, mutations, and getters should be specified. console.log("Server listening on `localhost:" + port + "`."); One thing remember is to call nuxt.render at the end of your middlewares since it will handle the rendering of your web application and won't call next () How to edit host and port? $ vue init nuxt/starter fictional-store. Lastly, start the dev server with: yarn dev . Open the nuxt project in your favorite code editor. dev is forced to false with nuxt build, nuxt start and nuxt generate. Using serverless functions with Nuxt.js - LogRocket Blog HTTP Serving on . We're going to be using it to store "like" counts for . The Nova View is not server-side render yet, so if we disable the client-side script nothing is displayed. Now, we can run this file from our command line using the command. export default { buildModules: ['@nuxt/typescript-build'] } Notice that ES2018 target is needed to be able to use Optional Chaining and Nullish Coalescing, as ESNext target doesn't seem to support these features for now. Finally, the Nova view is rendered and mounted correctly displaying a heading text saying "Hello Ara Framework" .