diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index fd92628e3..566b7305c 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -54,7 +54,7 @@ jobs:
- name: Replace basePath in Next.js config
run: |
- sed -i 's|basePath: "/",|basePath: "/chester",|' next.config.mjs
+ sed -i 's|basePath: "",|basePath: "/chester",|' next.config.mjs
working-directory: ./site
- name: Install dependencies
diff --git a/build.sbt b/build.sbt
index 57c824759..117932ac4 100644
--- a/build.sbt
+++ b/build.sbt
@@ -400,6 +400,7 @@ lazy val site = crossProject(JSPlatform).withoutSuffixFor(JSPlatform)
)
.jsSettings(
libraryDependencies += "com.github.japgolly.scalajs-react" %%% "core" % "2.1.1",
+ libraryDependencies += "me.shadaj" %%% "slinky-core" % "0.7.4",
)
lazy val lsp = crossProject(JVMPlatform).withoutSuffixFor(JVMPlatform)
diff --git a/site/app/page.tsx b/site/app/page.tsx
index 433c8aa7f..6e1a37cb3 100644
--- a/site/app/page.tsx
+++ b/site/app/page.tsx
@@ -1,52 +1,33 @@
+'use client';
+
+import { useEffect, useRef } from "react";
import Image from "next/image";
+import { XTerm } from "@pablo-lion/xterm-react";
export default function Home() {
+ const xtermRef = useRef(null);
+
+ useEffect(() => {
+ if (xtermRef.current) {
+ xtermRef.current.terminal.writeln("Welcome to Chester REPL");
+ xtermRef.current.terminal.writeln("Type your Chester code below:");
+ }
+ }, []);
+
return (
-
- -
- Get started by editing{" "}
-
- app/page.tsx
-
- .
-
- - Save and see your changes instantly.
-
-
-
-
-
- Deploy now
-
-
- Read our docs
-
+
Chester: A Programming Language
+
+