Leaflet Blog in Deno Fresh
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update with docker

+25 -6
+12
Dockerfile
··· 1 + FROM denoland/deno:ubuntu 2 + 3 + WORKDIR /app 4 + 5 + COPY . . 6 + RUN deno cache main.ts 7 + RUN deno task build 8 + 9 + USER deno 10 + EXPOSE 8000 11 + 12 + CMD ["run", "-A", "main.ts"]
+11
docker-compose.yml
··· 1 + version: "3.8" 2 + services: 3 + deno-app: 4 + build: . 5 + volumes: 6 + - .:/app 7 + ports: 8 + - "8000:8000" 9 + environment: 10 + - DENO_ENV=development 11 + command: ["deno", "run", "--watch", "--allow-net", "main.ts"]
+2 -2
lib/env.ts
··· 6 6 PLAUSIBLE_DOMAIN: "https://plausible.knotbin.xyz", 7 7 PLAUSIBLE_API_KEY: "", 8 8 NEXT_PUBLIC_BSKY_DID: "did:plc:6hbqm2oftpotwuw7gvvrui3i", 9 - NEXT_PUBLIC_BSKY_PDS: "https://puffball.us-east.host.bsky.network", 9 + NEXT_PUBLIC_BSKY_PDS: "https://knotbin.xyz", 10 10 }; 11 11 12 12 // Use cleanEnv to validate and parse the environment variables ··· 21 21 PLAUSIBLE_API_KEY: str({ default: "" }), 22 22 NEXT_PUBLIC_BSKY_DID: str({ default: "did:plc:6hbqm2oftpotwuw7gvvrui3i" }), 23 23 NEXT_PUBLIC_BSKY_PDS: url({ 24 - default: "https://puffball.us-east.host.bsky.network", 24 + default: "https://knotbin.xyz", 25 25 }), 26 26 });
-4
routes/post/[slug].tsx
··· 7 7 import { Title } from "../../components/typography.tsx"; 8 8 import { getPost } from "../../lib/api.ts"; 9 9 import { Head } from "$fresh/runtime.ts"; 10 - import { CommentSection } from "../../islands/CommentSection.tsx"; 11 10 12 11 interface Post { 13 12 uri: string; ··· 146 145 /> 147 146 </div> 148 147 </article> 149 - <CommentSection 150 - author="knotbin.xyz" 151 - /> 152 148 </main> 153 149 <Footer /> 154 150 </div>