Skip to content

Next JS


  • try deleting the .next folder
    • could be a caching issue
    • kinda like reinstalling your node modules

Components on every page

How you add the same header & footer to every page

!!! What if you don't want that custom app for certain pages?

Create ./pages/_app.js

Custom Document


  • edit the HTML tag
NextScript } from 'next/document'

export default function Document() {
  return (
      <Head lang="en-CA"/>
        <Main />
        <NextScript />

Last update: 2023-04-24