Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Enable production mode to use Million Lint in production. This is potentially dangerous" error message even after enabling it #1144

Closed
1 task done
anaclumos opened this issue Oct 7, 2024 · 2 comments

Comments

@anaclumos
Copy link

What version of million are you using?

1.0.9

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

pnpm

What operating system are you using?

Mac

What browser are you using?

Firefox

Describe the Bug

import MillionLint from "@million/lint";
import withBundleAnalyzer from "@next/bundle-analyzer";

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  logging: {
    fetches: {
      fullUrl: true,
    },
  },
};

const bundleAnalyzer = withBundleAnalyzer({
  enabled: process.env.ANALYZE === "true",
});

export default MillionLint.next({
+ production: true,
  rsc: true,
})(bundleAnalyzer(nextConfig));

Still gives me

Enable production mode to use Million Lint in production. This is potentially dangerous (contact: [email protected])

What's the expected result?

The error should go away.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/stackblitz-starters-oivvfn?file=next.config.mjs

Participation

  • I am willing to submit a pull request for this issue.
Copy link

github-actions bot commented Oct 7, 2024

Thanks for opening this issue! A maintainer will review it soon.

@aidenybai
Copy link
Owner

Hi, production mode is not supported at this time. This seems to be an unintuitive error message, we'll fix it in the next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants