Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

400
Views
Tailwind Not Working in Production Mode with Next.js

The following tailwind className assignment works correctly when running the server in development mode:

<Link href='#pop' className='w-full text-black no-underline'>

Specifically, the class no-underline becomes

text-decoration-line: none;

as shown by the Chrome dev tools.

When I run the following from the command like

NODE_ENV=production npm run build && npm start  

now the same element has

text-decoration: underline;

This results in a UI bug where the anchor tag is no longer rendering correctly, as it did in development.

// tailwind.config.js

module.exports = {
  content: [
    './pages/**/*.{js,ts,jsx,tsx}',
    './components/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};
// postcss.config.js

module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
/* global.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    height: 100vh;
  }
  .section-title {
    @apply font-bold pb-3 text-2xl;
  }
  .section {
    @apply py-6;
  }

  .discog-box {
    @apply bg-white p-3 flex content-center flex-col;
  }

  .text-shadow-custom {
    text-shadow: 2px 2px 4px #000;
  }
}

There are several other tailwind className assignments that are not working correctly. For this reason, when I deploy my app to Vercel, in this case, the UI is totally broken: https://tunester-8f737wgsk-currenthandle.vercel.app/

https://github.com/currenthandle/tunester/blob/no-moralis/components/IndexPageSideBar.js#L18

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!