Skip to content

dxe/righttorescue.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can edit the pages by modifying pages/*.tsx. Your browser auto-updates as you edit the files.

Development

Page filenames must be lowercase. In the past we experienced discrepancies with case sensitivity between S3 and our app's routing, so we configured S3 to invoke our custom 404 page, and that page to rewrite all URLs to lowercase.

New pages may need to be added to the PAGES_TO_ALWAYS_SHRINK_NAVBAR array for proper formatting.

The use of Bootstrap for CSS in this project is deprecated. (Tailwind for CSS might be cool.)

Components

Documentation of the various components available for use can be found here.

Tests

Run tests with pnpm run test. Debug tests using the VS Code debug tab which makes use of launch.json.

Deployment

A GitHub Action automatically deploys the website to http://righttorescue.com after pushing to the main branch. Next.js generates static files for this website, and these are pushed to AWS S3.