Skip to content

Commit f05685f

Browse files
committed
working
1 parent b92a8da commit f05685f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

src/components/Intro.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
let isMounted;
2727
let introAgentsRef;
2828
29-
const METHODS_ANCHOR = "#methods";
29+
const heroCTA = copy?.paperHeader?.hero?.cta || {};
30+
const PAPER_LINK =
31+
typeof heroCTA.href === "string" && heroCTA.href.trim().length > 0 ? heroCTA.href : "#";
3032
3133
onMount(() => {
3234
setTimeout(() => {
@@ -59,7 +61,7 @@
5961
if (index === 1 || index === 2) {
6062
return html.replace(
6163
/<span class=instructions>([\s\S]*?)<\/span>/g,
62-
`<a class="methods-link" href="${METHODS_ANCHOR}"><span class="instructions">$1</span></a>`
64+
`<a class="methods-link" href="${PAPER_LINK}" target="_blank" rel="noopener noreferrer"><span class="instructions">$1</span></a>`
6365
);
6466
}
6567
return html;

src/routes/player/[...recordingPath]/+page.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import allBenchmarkData from "$data/website_data.csv";
22

33
export const ssr = false;
4+
export const prerender = false;
45

56
export function load({ params, url }) {
67
const recordingPath = params.recordingPath || "";

src/routes/recordings/[...recordingPath]/+server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import path from "node:path";
22
import { readFile } from "node:fs/promises";
33

4+
export const prerender = false;
5+
46
const recordingsRoot = path.resolve("src/data/recordings");
57

68
export async function GET({ params }) {

svelte.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const preprocess = sveltePreprocess({
1111
const config = {
1212
preprocess,
1313
kit: {
14-
adapter: adapterStatic()
14+
adapter: adapterStatic({
15+
fallback: "200.html"
16+
})
1517
},
1618
vitePlugin: {
1719
// experimental: {

0 commit comments

Comments
 (0)