Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

How to set --hostname for /api/source #58

Open
menteora opened this issue Aug 28, 2019 · 1 comment
Open

How to set --hostname for /api/source #58

menteora opened this issue Aug 28, 2019 · 1 comment

Comments

@menteora
Copy link

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

@galvez
Copy link
Contributor

galvez commented Aug 28, 2019

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants