Skip to content

Instantly share code, notes, and snippets.

@schpet
Created August 31, 2022 04:36
Show Gist options
  • Save schpet/9b74730b54eb5151173ce4e9c759ed2a to your computer and use it in GitHub Desktop.
Save schpet/9b74730b54eb5151173ce4e9c759ed2a to your computer and use it in GitHub Desktop.
diff --git a/node_modules/@remix-run/dev/dist/config.d.ts b/node_modules/@remix-run/dev/dist/config.d.ts
index b467fff..9059e03 100644
--- a/node_modules/@remix-run/dev/dist/config.d.ts
+++ b/node_modules/@remix-run/dev/dist/config.d.ts
@@ -7,7 +7,7 @@ export interface RemixMdxConfig {
export declare type RemixMdxConfigFunction = (filename: string) => Promise<RemixMdxConfig | undefined> | RemixMdxConfig | undefined;
export declare type ServerBuildTarget = "node-cjs" | "arc" | "netlify" | "vercel" | "cloudflare-pages" | "cloudflare-workers" | "deno";
export declare type ServerModuleFormat = "esm" | "cjs";
-export declare type ServerPlatform = "node" | "neutral";
+export declare type ServerPlatform = "node" | "neutral" | "browser";
/**
* The user-provided config in `remix.config.js`.
*/
diff --git a/node_modules/@remix-run/dev/dist/config.js b/node_modules/@remix-run/dev/dist/config.js
index 4924d80..3a5e245 100644
--- a/node_modules/@remix-run/dev/dist/config.js
+++ b/node_modules/@remix-run/dev/dist/config.js
@@ -95,7 +95,7 @@ async function readConfig(remixRoot, serverMode = serverModes.ServerMode.Product
case "cloudflare-workers":
case "deno":
serverModuleFormat = "esm";
- serverPlatform = "neutral";
+ serverPlatform = "browser";
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment