next.js/test/e2e/twoslash/next.config.js
next.config.js27 lines595 B
const path = require('path')

/** @type {import('next').NextConfig} */
const nextConfig = {
  // output: 'standalone',

  // TODO ideally, all of these manual includes wouldn't be necessary. Maybe we can improve that for
  // Turbopack
  outputFileTracingIncludes: {
    '/': [
      path.relative(
        process.cwd(),
        path.resolve(
          require.resolve('typescript/package.json'),
          '..',
          'lib',
          'lib.*.d.ts'
        )
      ),
      './node_modules/@types/node/**',
    ],
  },
  serverExternalPackages: ['twoslash'],
}

module.exports = nextConfig
Quest for Codev2.0.0
/
SIGN IN