Skip to content

Commit

Permalink
fix: fetch schema error
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jul 22, 2024
1 parent e8f6e14 commit 7ee85c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const dev = task({
name: 'dev',
dependencies: [build],
run: async () => {
await runTask(devWorkerPreview);
await runTask(devNode);
},
});

Expand Down
2 changes: 1 addition & 1 deletion libs/cfworker-builder/src/gen-toml.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function run() {
const v = process.env[key];
if (v && match.index) {
magic.update(match.index, match.index + match[0].length, v);
console.log(`"${key}" will be replaced to "[redacted]"`);
console.log(`updated: "${key}" -> 🤫`);
} else {
console.warn(`env variable "${key}" not found.`);
}
Expand Down
3 changes: 1 addition & 2 deletions src/api/controllers/configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ export function route(hono: THono) {
return c.html(
html`${raw(ConfigurationHTML)}
<script type="module">
import defaultSchema from '${schemaUrl}' assert { type: 'json' };
const defaultSchema = await (await fetch('${schemaUrl}')).json();
window.starting_value = ${raw(JSON.stringify(data ?? {}))};
window.submit_url =
'${c.origin}/configuration/${id}/${type}?token=${token}';
Expand Down

0 comments on commit 7ee85c8

Please sign in to comment.