# 禁用x-powered-by

By default Next.js will add the x-powered-byheader. To opt-out of it, open next.config.jsand disable the poweredByHeaderconfig:

module.exports = {
  poweredByHeader: false,
}

Introduction to next.config.jsLearn more about the configuration file used by Next.js.

Last Updated: 5/13/2023, 8:55:38 PM