Next.js Discord

Discord Forum

Tailwind CSS not displaying on github pages

Answered
European sprat posted this in #help-forum
Open in Discord
European spratOP
Hi everyone, I made a basic project using create-next-app and I implemented the css on this project using Tailwind CSS.

Then I followed this (https://github.com/gregrickaby/nextjs-github-pages) guide in order to conifgure my project to be able to deploy through github pages.

However, I am running into the problem that my site does not have ANY styling. Many resources I have found online I feel like doesn't apply to nextjs projects utilizing tailwind, but I am not sure. Anyone know what could be causing this issue & how I may be able to resolve it?
Answered by European sprat
i needed to change the basepath in config.mjs to the name of my repository
View full answer

3 Replies

European spratOP
Everything about my setup is default, btw. I only edited the html portions of the code and created other pages with pure html/css
European spratOP
resolved
European spratOP
i needed to change the basepath in config.mjs to the name of my repository
Answer