Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more
You are currently viewing documentation for version 15 of Next.js.

sassOptions

Last updated June 16, 2025

sassOptions allow you to configure the Sass compiler.

next.config.ts
import type { NextConfig } from 'next'
 
const sassOptions = {
  additionalData: `
    $var: red;
  `,
}
 
const nextConfig: NextConfig = {
  sassOptions: {
    ...sassOptions,
    implementation: 'sass-embedded',
  },
}
 
export default nextConfig

Good to know: sassOptions are not typed outside of implementation because Next.js does not maintain the other possible properties.

Was this helpful?

supported.