-
Install dependencies
Navigate into your new site’s directory and start it up (require Node.js and npm)
npm install
-
Copy .env.example file
Copy the file and update the environment variables that need to be updated
cp .env.example .env
-
Start developing.
npm run dev
-
Open the source code and start editing!
Your site is now running at
http://localhost:3000
!
Add year-1 redirection in public-archive/netlify.toml
.
Run the following commands with the correct year:
NEXT_PUBLIC_ARCHIVE_YEAR=2024 npm run build:archive
npm run start:archive # Serve the archive, and go to the archive-2024 folder
Tag the latest commit.
git tag -a archive-XXXX -m "Archive XXXX"
Change the currentYear
in src/constants/site.ts
.
Change the src/app/2024
(year) folder name to the new year and edit the content of the pages.
Create past year redirection in ./netlify.toml
.
Add the past year in the src/constants/site.ts
file.