Skip to content

Commit fa04d12

Browse files
committed
Use absolute path
1 parent e2e3af3 commit fa04d12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

site/sidebars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const sidebars: SidebarsConfig = {
3636
"development/cost-estimator",
3737
{
3838
type: "link",
39-
href: "/visualizer/index.html",
39+
href: "https://leios.cardano-scaling.org/visualizer",
4040
label: "Visualizer",
4141
},
4242
],

ui/src/components/Sim/modules/Scenario.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const Scenario: FC = () => {
1010

1111
useEffect(() => {
1212
(async () => {
13-
const response = await fetch("scenarios.json");
13+
const response = await fetch("visualizer/scenarios.json");
1414
const body: { scenarios: IScenario[] } = await response.json();
1515
const scenarios = body.scenarios.map(scenario => ({
1616
...scenario,

ui/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills';
66

77
// https://vite.dev/config/
88
export default defineConfig({
9-
base: '',
9+
base: 'visualizer',
1010
plugins: [react(), tailwindcss(), nodePolyfills()],
1111
server: {
1212
port: 3000,

0 commit comments

Comments
 (0)