Skip to content

An example setup using Next.js, Tailwind CSS and Font Awesome.

License

Notifications You must be signed in to change notification settings

smebberson/next-tailwind-fontawesome

Repository files navigation

next-tailwind-fontawesome

An example setup using Next.js, Tailwind CSS and Font Awesome.

Development

To get started with development, follow these steps.

Install dependencies:

yarn

Start the development server:

yarn dev

Open a browser to http://localhost:3000. As you make changes to the code, the browser will automatically update.

Cloudflare

This project is configured to deploy to Cloudflare Pages Site.

Testing

To test the production build locally, follow these steps.

Build the website:

yarn build:ci

Run wrangler to browser the website:

yarn dev:ci

Open a browser to http://127.0.0.1:8788.

Template

To use this repository as a template, after creating a new repository, complete the following steps.

Configure the repository secrets, by going to Settings > Secrets and variables > Actions and adding the FONTAWESOME_NPM_AUTH_TOKEN secret.

Follow the steps at Cloudflare Docs > Pages > Deploy a Next.js site > Use the Edge Runtime, with the following considerations:

  • The Edge Runtime has already been setup on app/api/features and app/ssr.
  • Yarn has been pinned to v1.22.19 using packageManager in package.json.
  • You'll need to ensure .npmrc.pages is copied across and that you setup a TOKEN_FOR_FONTAWESOME environment variable.
  • You'll need to ensure you add the nodejs_compat flag.

About

An example setup using Next.js, Tailwind CSS and Font Awesome.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages