The core use-case of TypeScript
Using types (and interfaces) to define a blueprint of a variable
Jan 21, 20262 min read9

Search for a command to run...
Articles tagged with #nextjs
Using types (and interfaces) to define a blueprint of a variable

Upload NextJS's out folder to your remote server's application path at `npm run build` time

When exporting a NextJS application ("build": "next build && next export") to the default out folder, the static pages get exported to .html files. The issue with this is, when navigating to mydomain.com/about from the home page (mydomain.com) it wor...
If you want to add a class (className) to the body tag of a a NextJS page, you'll need to add it via JavaScript in the useEffect (or componentDidMount if you're using class-based components) Lifecycle function. This adds TailWindCSS's font-light and ...