Skip to content

Commit

Permalink
Added base forward-slash prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Dec 24, 2024
1 parent 380fda1 commit 1470012
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/components/index/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function PackageIndexItem(props: PackageIndexItemProps) {
return (
<li class="px-0">
<h3>
<a href={pkg.workspace}>{pkg.workspace}</a>
<a href={`/${pkg.workspace}`}>{pkg.workspace}</a>
</h3>
<p>
<pkg.MDXDescription />
Expand Down
7 changes: 5 additions & 2 deletions www/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { main, suspend } from "effection";
import getPort from "npm:[email protected]";
import { call, main, suspend } from "effection";
import { createRevolution, ServerInfo } from "revolution";
import { initDenoDeploy } from "../deno-deploy/mod.ts";

Expand Down Expand Up @@ -45,7 +46,9 @@ if (import.meta.main) {
],
});

let server = yield* revolution.start();
let server = yield* revolution.start({
port: yield* call(() => getPort({ port: 8000 })),
});
console.log(`www -> ${urlFromServer(server)}`);

yield* suspend();
Expand Down

1 comment on commit 1470012

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 1470012 Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

PermissionDenied: 'Deno.exit' is not allowed in this context.
    at Object.exit (ext:deno_deploy/os.js:69:9)
    at hardexit (file:///node_modules/.deno/[email protected]/node_modules/effection/esm/lib/main.js:72:49)
    at main (file:///node_modules/.deno/[email protected]/node_modules/effection/esm/lib/main.js:131:5)
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async file:///src/www/main.ts:19:3

Please sign in to comment.