Skip to content

Commit 6220f4c

Browse files
committed
Fixidy fix fix
1 parent 214ba4a commit 6220f4c

8 files changed

Lines changed: 15 additions & 19 deletions

File tree

public/assets/favicon.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/favicon.png

565 KB
Loading

public/favicon.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/app/favicon.ico

-25.3 KB
Binary file not shown.

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
1515
description:
1616
"Design a complete breadboard project. We send you the kit to build it.",
1717
icons: {
18-
icon: "/favicon.svg",
18+
icon: "/favicon.png",
1919
},
2020
};
2121

src/components/velxio/VelxioEditorClient.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ const NON_TRACKING_PROJECT_STATUSES = new Set([
3030
"done",
3131
]);
3232

33-
loader.config({ paths: { vs: "/monaco/vs" } });
33+
loader.config({
34+
paths: {
35+
vs: process.env.NODE_ENV === "production"
36+
? "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"
37+
: "/monaco/vs",
38+
},
39+
});
3440

3541
import { captureEditorState } from "@/lib/editor/captureState";
3642

src/components/velxio/VelxioSnapshotViewer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ import "@/app/editor/velxio-styles/index.css";
66
import { loader } from "@monaco-editor/react";
77
import { type FC, useEffect, useRef, useState } from "react";
88

9-
loader.config({ paths: { vs: "/monaco/vs" } });
9+
loader.config({
10+
paths: {
11+
vs: process.env.NODE_ENV === "production"
12+
? "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"
13+
: "/monaco/vs",
14+
},
15+
});
1016
import type { EditorSnapshotState } from "@/lib/editor/captureState";
1117

1218
type SnapshotLike = EditorSnapshotState | Record<string, any>;

src/components/velxio/components/editor/CodeEditor.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@ export const CodeEditor = ({ readOnly = false }: { readOnly?: boolean }) => {
3232
theme={theme}
3333
value={activeFile?.content ?? ""}
3434
beforeMount={(monaco) => {
35-
(window as any).MonacoEnvironment = {
36-
getWorker() {
37-
return new Worker(
38-
URL.createObjectURL(
39-
new Blob(["self.onmessage = function(){}"], {
40-
type: "text/javascript",
41-
}),
42-
),
43-
);
44-
},
45-
};
4635
registerRetroAsm(monaco);
4736
}}
4837
onChange={(value) => {

0 commit comments

Comments
 (0)