An SSG for ONYX Events
- Download the Repo
- Make changes
- Run
build
- Rename and zip the
dist
folder
- The Deploy builds a site for preview with Github pages. The Github Pages url is not meant for distribution.
- This repo uses
bun
as a package manager, but this can easily be swapped out fornpm
. Simply delete thebun-lock
file and runnpm i
before continuing.
- The Astro Config File is set for deployment to Github Pages and is overridden with CLI arguments
In v1, there are 2 build scripts: build
and build-elite
. Because the client asked for two pages (with slight variations between the two), each build script is prefixed with an environment variable: IS_ELITE
, which is used as a simple boolean value.
In v1, this environment toggles a few options:
- The page
title
is set to "Onyx (Elite) Gift Event" - The main logo swaps svgs, to render "Onyx (Elite) Gift Event"
- The
Details
section has a word about what type of gift event it is: "Onyx (Elite) Gift Event"
Each build script also updates Astro's base
config to either be /uploads/onyx-gift-event
or /uploads/onyx-elite-gift-event
. This is a part of the Astro CLI.