Skip to content

maiertech/website

Repository files navigation

@maiertech/website

This is the repo for my website https://www.maier.tech.

NPM registries

This repository installs package @maiertech/sveltekit-helpers from the GitHub NPM registry, which requires authentication. .npmrc looks like this:

# https://pnpm.io/npmrc#registry
registry=https://registry.npmjs.org/
@maiertech:registry=https://npm.pkg.github.com/

# https://pnpm.io/npmrc#url_authtoken
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}

I use environment variable GITHUB_TOKEN to authenticate to the private registry.

Environment variables

Variable Value Description
EO_API_KEY EmailOctopus API key.
EO_LIST_ID EmailOctopus list ID. Different IDs for dev and prod.
GITHUB_TOKEN Personal access token (classic) with repo and read:packages permissions. repo is required to retrieve the last modified date for posts from the GitHub API. read:packages is required to install package @maiertech/sveltekit-helpers.
PUBLIC_CANONICAL_ORIGIN https://www.maier.tech Used in SEO components, /sitemap.xml, and /rss.xml.xml.

GITHUB_TOKEN is available by default in GitHub Actions and Codespaces. But the token's permissions need to be augmented. In Package settings for package @maiertech/sveltekit-helpers:

  • Add maiertech/website to Manage Codespaces access.
  • Add maiertech/website to Manage Actions access.

On Vercel and for local development, you need to make the personal access token (classic) available as environment variable GITHUB_TOKEN.