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.

isAPI not set correctly when using generate #47

@josh--

Description

@josh--

It looks like there might be an issue how IsAPI is being set within lib/plugin.js

https://github.com/nuxt-community/nuxtent-module/blob/master/lib/plugin.js#L35

when generating a static site isAPI is always true even when isClient is true. When serving the generated site via nginx the browser tries to load the "api" url rather than generated content one. I simply added the following, regenerated and it was good to go.

  if(isClient){
    isAPI = false;
  }
This question is available on Nuxt.js community (#c46)

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