Skip to content

Commit 2bdc260

Browse files
committed
Update deployment workflow and integrate compression in Astro config
1 parent fd35281 commit 2bdc260

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: 🧱 Checkout repository
1818
uses: actions/checkout@v4
1919
- name: 🔩 Setup PNPM
20-
uses: pnpm/action-setup@v3
20+
uses: pnpm/action-setup@v4
2121
with:
22-
version: next-9
22+
version: latest
2323
standalone: true
2424
- name: 🔩 Setup Node ${{ matrix.node }}
2525
uses: actions/setup-node@v4

astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import vue from "@astrojs/vue";
33
import deno from "@deno/astro-adapter";
44
import tailwindcss from "@tailwindcss/vite";
55
import { defineConfig } from "astro/config";
6-
// import compress from "astro-compressor";
6+
import compress from "astro-compressor";
77

88
// https://astro.build/config
99
export default defineConfig({
@@ -14,7 +14,7 @@ export default defineConfig({
1414
},
1515
output: "server",
1616
adapter: deno(),
17-
integrations: [vue({ devtools: true })],
17+
integrations: [vue({ devtools: true }), compress()],
1818
vite: {
1919
plugins: [tailwindcss()],
2020
},

deno.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"deploy": {
3+
"project": "profile-views",
4+
"exclude": ["**/node_modules"],
5+
"include": [],
6+
"entrypoint": "dist/server/entry.mjs"
7+
}
8+
}

0 commit comments

Comments
 (0)