updated remix adapter for non-middleware env, fixed console mute

This commit is contained in:
dswbx
2025-02-19 14:13:29 +01:00
parent f2e5815e24
commit ee7dcd44f4
15 changed files with 169 additions and 78 deletions

View File

@@ -17,6 +17,7 @@ export type AdminControllerOptions = {
assets_path?: string;
html?: string;
forceDev?: boolean | { mainPath: string };
debug_rerenders?: boolean;
};
export class AdminController extends Controller {
@@ -192,10 +193,12 @@ export class AdminController extends Controller {
/>
<link rel="icon" href={favicon} type="image/x-icon" />
<title>BKND</title>
{/*<script
crossOrigin="anonymous"
src="//unpkg.com/react-scan/dist/auto.global.js"
/>*/}
{this.options.debug_rerenders && (
<script
crossOrigin="anonymous"
src="//unpkg.com/react-scan/dist/auto.global.js"
/>
)}
{isProd ? (
<Fragment>
<script