Skip to content

Commit

Permalink
adding logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrioid committed Oct 14, 2024
1 parent 8c36a2d commit 1407653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ const app = express();
app.use(noWWW);
app.use(express.static("dist/client/"));
app.use(ssrHandler);
console.log("[andri.dk] Server listening on port 3000");

app.listen(3000);
1 change: 1 addition & 0 deletions src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const server = {
handler: async (input, ctx) => {
// https://discord.com/channels/830184174198718474/1295282295510405202
// TODO: Revisit this. Can't find the IP in the Astro request
console.log("hello called, headers", ctx.request.headers);
return `Hello ${input.name}`;
},
}),
Expand Down

0 comments on commit 1407653

Please sign in to comment.