Next.js Discord

Discord Forum

Tailwind and Next tsx cpanel deploy style error

Unanswered
Harlex posted this in #help-forum
Open in Discord
I uploaded my application that I wrote with next and tailwind to a cpanel server, but the styles do not work, it looks like pure html.

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
assetPrefix: "https://ramaxtime.info",
output: "export",
trailingSlash: true,
images: {
unoptimized: true,
},
};

export default nextConfig;


&913086567042674719 base;
&913086567042674719 components;
&913086567042674719 utilities;

.container-fluid {
width: 1870px;
max-width: 100%;
margin: 0 auto;
padding: 0 25px;
}

.container {
width: 910px;
max-width: 90%;
margin: 0 auto;
}

@media screen and (max-width: 1024px) {
.container-fluid {
padding: 0 50px;
}
}

@media screen and (max-width: 768px) {
.container {
max-width: 100%;
padding: 0 30px;
}
}

1 Reply