Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Commit 5903378

Browse files
committed
Fix build
1 parent ddef9fd commit 5903378

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

client/src/index.html renamed to client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<title>IPFS Cluster Webui</title>
1919
</head>
2020
<body>
21-
<script type="module" src="/index.tsx"></script>
21+
<script type="module" src="/src/index.tsx"></script>
2222
<noscript>You need to enable JavaScript to run this app.</noscript>
2323
<div id="root"></div>
2424
</body>

client/vite.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {viteCommonjs} from '@originjs/vite-plugin-commonjs';
66

77
// https://vitejs.dev/config/
88
export default defineConfig({
9-
root: './src',
109
resolve: {
1110
alias: [
1211
{
@@ -37,7 +36,7 @@ export default defineConfig({
3736
],
3837
build: {
3938
assetsDir: './assets',
40-
outDir: '../build',
39+
outDir: './build',
4140
rollupOptions: {}
4241
}
4342
})

ipfs-cluster-api/dist/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function mapOptions(options) {
66
return '';
77
const parts = [];
88
for (const key of Object.keys(options)) {
9-
parts.push(mapOptionName(key) + '=' + options[key]);
9+
parts.push(mapOptionName(key) + '=' + options[key].toString());
1010
}
1111
return parts.join('&');
1212
}

ipfs-cluster-api/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export function mapOptions(options?: object): string {
33

44
const parts: string[] = [];
55
for (const key of Object.keys(options)) {
6-
parts.push(mapOptionName(key) + '=' + options[key]);
6+
parts.push(mapOptionName(key) + '=' + (options as any)[key].toString());
77
}
88
return parts.join('&');
99
}

0 commit comments

Comments
 (0)