Skip to content

fetch on NodeJS #8

@erenkulaksiz

Description

@erenkulaksiz

Nexys needs an adapter on serverside to use fetch implementation similar to localStorage adapter.

Will be tested with well known fetch packages like node-fetch or new fetch on new NodeJS environments.

We need adapters because of our 0 dependency policy.

API/index.ts

return fetch(server, {
method: "POST",
headers: {
"Content-Type": "application/json",
...headers,
},
body: JSON.stringify({ ...data, project: this._appName }),
}).then(async (res: Response) => {

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature to be added

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions