Skip to content

Commit

Permalink
feat(website): add meta description and compression
Browse files Browse the repository at this point in the history
  • Loading branch information
rherwig committed Nov 8, 2023
1 parent 2cb5040 commit 9b1009e
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2 deletions.
8 changes: 8 additions & 0 deletions apps/website/src/components/router-head/router-head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ export const RouterHead = component$(() => {
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<meta
name="description"
content="I am Rico, an professional JavaScript developer from northern Germany. Here, you can find out more about who I am and what I do."
/>
<meta
name="theme-color"
content="#09090b"
/>
<link
rel="icon"
type="image/icon"
Expand Down
5 changes: 3 additions & 2 deletions apps/website/src/entry.express.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { fileURLToPath } from 'node:url';
import { join } from 'node:path';

import express from 'express';
import compression from 'compression';
import { createQwikCity, type PlatformNode } from '@builder.io/qwik-city/middleware/node';
import qwikCityPlan from '@qwik-city-plan';
import { manifest } from '@qwik-client-manifest';
import express from 'express';

import render from './entry.ssr';

Expand Down Expand Up @@ -42,7 +43,7 @@ const { router, notFound } = createQwikCity({
const app = express();

// Enable gzip compression
// app.use(compression());
app.use(compression());

// Static asset handlers
// https://expressjs.com/en/starter/static-files.html
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@nx/vite": "17.0.2",
"@nx/workspace": "17.0.2",
"@tailwindcss/typography": "0.5.10",
"@types/compression": "1.7.5",
"@types/express": "4.17.20",
"@types/node": "20.8.9",
"@typescript-eslint/eslint-plugin": "6.9.0",
Expand Down Expand Up @@ -67,6 +68,7 @@
},
"dependencies": {
"@qwikest/icons": "0.0.13",
"compression": "1.7.4",
"express": "4.18.2",
"node-fetch": "3.3.2",
"tslib": "2.6.2",
Expand Down
48 changes: 48 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b1009e

Please sign in to comment.