updated nextjs example

This commit is contained in:
dswbx
2025-03-04 14:39:32 +01:00
parent ab73b02138
commit 4f52537ea0
15 changed files with 440 additions and 211 deletions

View File

@@ -39,3 +39,11 @@ export function runtimeSupports(feature: keyof typeof features) {
return features[feature];
}
export function isNode() {
try {
return global?.process?.release?.name === "node";
} catch (e) {
return false;
}
}