Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jul 3, 2024
1 parent 3d1b130 commit 8d5f268
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
uses: denoland/deployctl@v1
with:
project: "deno-docs"
entrypoint: "_site/server.ts"
entrypoint: "server.ts"
19 changes: 19 additions & 0 deletions server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Server from "lume/core/server.ts";
import redirects from "lume/middlewares/redirects.ts";
import REDIRECTS from "./_site/_redirects.json" with { type: "json" };

const server = new Server({
port: 8000,
root: "_site",
});

server.use(redirects({
redirects: {
...REDIRECTS,
"/api/": "/api/deno/",
},
}));

server.start();

console.log("Listening on http://localhost:8000");

0 comments on commit 8d5f268

Please sign in to comment.