|
8 | 8 | <a aria-label="Version" href="https://github.com/igorkowalczyk/github-views/releases"> |
9 | 9 | <img src="https://img.shields.io/github/v/release/igorkowalczyk/github-views?color=blue&logo=github&label=Version"> |
10 | 10 | </a> |
11 | | - <a aria-label="Powered by" href="https://deno.com/deploy"> |
12 | | - <img src="https://img.shields.io/static/v1?label=Powered%20by&message=Deno&color=blue&logo=deno"> |
| 11 | + <a aria-label="Powered by" href="https://workers.cloudflare.com/"> |
| 12 | + <img src="https://img.shields.io/static/v1?label=Powered%20by&message=Cloudflare+Workers&color=blue&logo=cloudflareworkers"> |
13 | 13 | </a> |
14 | 14 | <a aria-label="Powered by" href="https://astro.build"> |
15 | 15 | <img src="https://img.shields.io/static/v1?label=Powered%20by&message=Astro&color=blue&logo=astro&logoColor=fff"> |
@@ -114,30 +114,29 @@ https://views.igorkowalczyk.dev/api/json/YOUR-USERNAME |
114 | 114 |
|
115 | 115 | --- |
116 | 116 |
|
117 | | -## 🔩 Self Hosting |
| 117 | +## 🔩 Local Development |
118 | 118 |
|
119 | 119 | 1. Clone [this repository](https://github.com/igorkowalczyk/github-views) `git clone https://github.com/IgorKowalczyk/github-views.git` |
120 | 120 | 2. Run `pnpm i` to install all dependencies, |
121 | | -3. Run `npm run build` to build the project or `npm run dev` to run the project in development mode. |
122 | | -4. Run `pnpm run preview` to preview the project. |
| 121 | +3. Edit the `wrangler.jsonc` file with your values |
| 122 | +4. Run `pnpm types` to generate types for the project |
| 123 | +5. Run `pnpm dev` to start the development server or `pnpm preview` to preview the production build |
123 | 124 |
|
124 | | -## 🖥️ Hosting with Deno Deploy |
125 | 125 |
|
126 | | -1. Fork this repository on GitHub |
127 | | -1. Go to https://deno.com/deploy and create an account |
128 | | -2. Click "New Project" and select your account and forked repository |
129 | | -3. Click "Add build step" and wait for the project to build |
130 | | -2. Go to [repository settings](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings) -> [Secrets and variables -> Actions -> Variables](https://docs.github.com/en/actions/learn-github-actions/variables) and add `DENO_DEPLOY_PROJECT` variable with your [Deno Deploy](https://deno.com/deploy) project name. |
131 | | -4. Wait for the project to build and go to the project URL |
| 126 | +## 🖥️ Hosting with Cloudflare Workers |
132 | 127 |
|
133 | | -> [!IMPORTANT] |
134 | | -> This project requires access to [Deno KV](https://deno.com/kv) which is currently in beta. |
135 | | -
|
136 | | -## 🖥️ Hosting with Vercel |
| 128 | +1. Clone [this repository](https://github.com/igorkowalczyk/github-views) `git clone https://github.com/IgorKowalczyk/github-views.git` |
| 129 | +2. Run `pnpm i` to install all dependencies, |
| 130 | +2. Go to [Cloudflare Workers](https://workers.cloudflare.com/) and create a new project (you can import the project from GitHub) |
| 131 | +3. Go to Cloudflare > Storage & Databases -> KV -> Create, and create a new KV namespace |
| 132 | +3. Link the KV namespace to the project in the `wrangler.jsonc` file |
| 133 | +4. Edit the `wrangler.jsonc` file with your values |
| 134 | +4. Run `pnpm types` to generate types for the project |
| 135 | +5. Run `pnpm dev` to start the development server or `pnpm preview` to preview the production build |
| 136 | +5. If you want to deploy the project, run `pnpm check` to check the project and `pnpm deploy` to deploy the project to Cloudflare Workers |
137 | 137 |
|
138 | | -> [!WARNING] |
139 | | -> Versions `>= v3` does not support Vercel hosting. If you want to host this project on Vercel, use versions |
140 | | -`<= v2`. To do this, go to [v2 branch](https://github.com/IgorKowalczyk/github-views/tree/v2.2.1) and follow the instructions corresponding to the version. |
| 138 | +> [!NOTE] |
| 139 | +> Refer to the [Cloudflare Workers documentation](https://developers.cloudflare.com/workers) and [Wrangler documentation](https://developers.cloudflare.com/workers/tooling/wrangler) for more information. |
141 | 140 |
|
142 | 141 | ## ⁉️ Issues |
143 | 142 |
|
|
0 commit comments