znv icon indicating copy to clipboard operation
znv copied to clipboard

Add support for `nextjs` Edge runtime

Open BowlingX opened this issue 1 year ago • 0 comments

This is just a rough draft.

I think a better approach would be to use the export map to import different implementation. e.g.

import { parseEnv } from "znv/node";
import { parseEnv } from "znv/next-edge";

The default could just point to the node implementation (to make it backwards compatible). The easiest would possibly to make parseEnv a factory that allows to pass the reportErrors function.

BowlingX avatar Sep 13 '23 15:09 BowlingX