diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml deleted file mode 100644 index 097b9bb..0000000 --- a/.github/workflows/deno.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Deploy -on: [push] - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - permissions: - id-token: write # Needed for auth with Deno Deploy - contents: read # Needed to clone the repository - - steps: - - name: Clone repository - uses: actions/checkout@v3 - - # TODO: add a build step here - - - name: Upload to Deno Deploy - uses: denoland/deployctl@v1 - with: - project: "binodnepali-portfolio" - entrypoint: "./main.ts" # TODO: update entrypoint diff --git a/routes/index.tsx b/routes/index.tsx index c5ee439..49de927 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -2,11 +2,15 @@ import Bio from "../components/Bio.tsx"; import Experience from "../components/Experience.tsx"; import Navbar from "../islands/Navbar.tsx"; -import data from "../data/linkedin-profile.json" with { - type: "json", -}; +// import data from "../data/linkedin-profile.json" with { +// type: "json", +// }; + +import { getProfile } from "../src/server/getProfile.ts"; + +export default async function Home() { + const data = await getProfile(); -export default function Home() { return ( <>