press icon indicating copy to clipboard operation
press copied to clipboard

How to set --hostname for /api/source

Open menteora opened this issue 4 years ago • 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

menteora avatar Aug 28 '19 10:08 menteora

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!

galvez avatar Aug 28 '19 17:08 galvez