Skip to content

dir becomes the local PC path in frourio.client.ts #8

@k4a-l

Description

@k4a-l

Description

/src/app/api/frourio.client.ts

Current

export const fc = (option?: FrourioClientOption) => ({
   ...
['$get']>>>>,
  ] {
    return [{ lowLevel: true, baseURL: option?.baseURL, dir: 'D:/Data/Develop/software/_sandbox/20250705_frourio-next/src/app/api' }, () => methods_gw1yzk(option).$get(req)];
  },
  ...
});

*I've included the actual path, but it doesn't contain any names, so it's fine.

Expected

export const fc = (option?: FrourioClientOption) => ({
   ...
['$get']>>>>,
  ] {
    return [{ lowLevel: true, baseURL: option?.baseURL, dir: '/' }, () => methods_gw1yzk(option).$get(req)];
  },
  ...
});

Environment

  • Package version: 0.19.2
  • OS:
    • Linux
    • Windows
    • macOS
  • Node.js version: v22.17.0
  • npm version: 10.8.1

Additional context

k4a-l/20250705_frourio-next_sandbox is minimum configuration repository (frourio.client.ts).

  • Next.js setup
  • frourio-next setup
  • npm run dev:frourio

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