nuxt/press

How to set --hostname for /api/source

Opened this issue · 1 comments

Hi, I'm testing last version of nuxt & nuxtpress

  "dependencies": {
    "@nuxt/press": "0.0.1-beta.4",
    "@nuxtjs/pwa": "^3.0.0-0",
    "nuxt": "^2.0.0"
  },

I'm working on linux container. Here is my working config:

  "scripts": {
    "dev": "nuxt --hostname 0.0.0.0",
    "build": "nuxt build",
    "start": "nuxt start --hostname 0.0.0.0",
    "generate": "nuxt generate",
    "lint": "eslint --ext .js,.vue --fix --ignore-path .gitignore ."
  },

I must run my application over --hostname 0.0.0.0

When i run npm run dev here is my error:

image

When i run npm run build & npm run build start here is my error:

image

There's a way to run /api/source over the same host of local nuxt application?

Thanks

Hey @menteora that looks like a bug to me, I'll look into it ASAP for the beta.5 release early next week. Thanks for helping us test NuxtPress!