diff --git a/fda-ui/nuxt.config.js b/fda-ui/nuxt.config.js
index f8f2640d30cfa06e05eb37002a340a017717a144..cbfeeb19accc05e359de03231c92a21b4d7545a3 100644
--- a/fda-ui/nuxt.config.js
+++ b/fda-ui/nuxt.config.js
@@ -1,3 +1,4 @@
+import path from 'path'
 import colors from 'vuetify/es5/util/colors'
 import isDocker from 'is-docker'
 
@@ -81,7 +82,7 @@ export default {
   },
 
   serverMiddleware: [
-    { path: '/server-middleware', handler: '@/server-middleware/index.js' }
+    { path: '/server-middleware', handler: path.resolve(__dirname, 'server-middleware/index.js') }
   ],
 
   // Vuetify module configuration (https://go.nuxtjs.dev/config-vuetify)