This is the source code for my personal website at https://thtmnisamnstr.com. It is a modified version of Leo Huynh's personal website [repo].
- Clone the repo
- Run
earthly +preview
, and the site will run on http://localhost:3000.
Deploying the site requires building at deploy. The site uses next/image
. Netlify requires @netlify/plugin-nextjs
and running netlify deploy
with the --build
argument to work with next/image
.
- Clone the repo.
- Make sure to set the
NODE_ENV
environment variable. - Run
earthly --push +deploy
, and the site will build and deploy to Netlify based on your Netlify environment variables.- Make sure Docker is started before running Earthly commands.
Note: You must add the
SPOTIFY_CLIENT_ID
,SPOTIFY_CLIENT_SECRET
, andSPOTIFY_REFRESH_TOKEN
environment variables to your Netlify site.
- Make sure Docker is started before running Earthly commands.
Note: You must add the
Building the site standalone isn't super useful unless you want to debug your Netlify build. Since build is required at deploy, build and deploy can't be isolated.
- Clone the repo.
- Run
earthly +build
, and the site will build and save build outputs to your project.- Make sure Docker is started before running Earthly commands.
- To update dependencies and remove unneeded dependencies, run
earthly +upgrade
.npm-check
andtaze
are used to maintain dependencies.- Manually upgrade by running
npm run deps-npm-check
andnpm run deps-taze
. - Or, even more manually, run
npx npm-check -u
andnpx taze
.
- Manually upgrade by running
- To install modules, run
npm install --force
. - To uninstall modules, run
npm uninstall [module_name] --force
.
Thanks to Leo Huynh's personal website [repo] for making his website open source.