Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

weird baseUrl when run generate #53

@wi-cuckoo

Description

@wi-cuckoo

my nuxtent.config.js

module.exports = {
  content: [
    ['blog', {
      page: '/blog/_slug',
      permalink: "/:slug",
      generate: ['get', 'getAll'],
      isPost: false
    }]
  ],
  api: {
   	baseURL: process.env.NODE_ENV === 'production'
	    ? 'http://wi-cuckoo.io'
	    : 'http://localhost:3000'
 	}
}

my package.json scripts

"scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "NODE_ENV=production nuxtent generate",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "precommit": "npm run lint"
  }

So When I run npm run generate. Why OPEN http://localhost:3000 ?

> cuckoo@1.0.0 generate /home/wi/bin/wi-cuckoo.gitpage
> NODE_ENV=production nuxtent generate

  nuxt:generate Generating... +0ms
[AXIOS] Base URL: http://wi-cuckoo.io/content-api , Browser: http://wi-cuckoo.io/_nuxt/content

 OPEN  http://localhost:3000

  nuxt:build App root: /home/wi/bin/wi-cuckoo.gitpage +0ms
This question is available on Nuxt.js community (#c52)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions