mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
chore: fix nextjs warnings (#5010)
This commit is contained in:
@@ -148,7 +148,7 @@ async function isDocker() {
|
||||
async function isWsl() {
|
||||
try {
|
||||
if (getVendor() === "cloudflare") return false;
|
||||
if (typeof process === "undefined" || process.platform !== "linux") {
|
||||
if (typeof process === "undefined" || process?.platform !== "linux") {
|
||||
return false;
|
||||
}
|
||||
const fs = await importRuntime<typeof import("fs")>("fs");
|
||||
|
||||
@@ -15,10 +15,8 @@ export type { AsyncLocalStorage };
|
||||
let moduleName: string = "node:async_hooks";
|
||||
|
||||
const AsyncLocalStoragePromise: Promise<typeof AsyncLocalStorage> = import(
|
||||
/**
|
||||
* @webpackIgnore: true
|
||||
* @vite-ignore
|
||||
*/
|
||||
/* @vite-ignore */
|
||||
/* webpackIgnore: true */
|
||||
moduleName
|
||||
)
|
||||
.then((mod) => mod.AsyncLocalStorage)
|
||||
|
||||
Reference in New Issue
Block a user