tailwind does not load css for static pages #63784
-
SummaryWhen I build with the output set to export tailwind it doesn't load the css for the static pages, I wanted to create a static website, I'm using next with tailwind, in dev mode everything works great, when I run yarn start everything also works perfect, with styling etc. . But the /out folder where there are static files, when I run it in my Apache it opens without any css, without any styling. someone help me ? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Solved, I just needed to pass the assetPrefix and the like this /** @type {import('next').NextConfig} */ export default nextConfig; |
Beta Was this translation helpful? Give feedback.
Solved, I just needed to pass the assetPrefix and the
basePath to my build output folder
like this
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
assetPrefix: '/out',
basePath: '/out',
};
export default nextConfig;