Skip to content

Problem with fetch data in production #400

Description

@milanblasko28
node:"20.5-alpine"
"nuxt": "^3.10.3"
@nuxtjs/strapi": "^1.11.0",

Hi, I have problem with fetch data in production mode. I fetch like this:
const { data: products, refresh: refreshProducts } = await useAsyncData("sanitary-cabins", () => find<any>("sanitary-cabins", { populate: "*" }) );

In development mode everything is okay. If I go to site data are fetch, but If I refresh page I get 500 error and in network is not any API call. When I fetch API using useFetch everything works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions