next.js/test/e2e/app-dir/set-cookies/next.config.mjs
next.config.mjs30 lines484 B
import { nextConfigHeaders } from './cookies.mjs'

const headers = nextConfigHeaders.map((header) => ({
  key: 'Set-Cookie',
  value: header,
}))

/**
 * @type {import('next').NextConfig}
 */
const config = {
  async headers() {
    return [
      {
        source: '/:path*',
        has: [
          {
            type: 'query',
            key: 'next-config-headers',
            value: 'true',
          },
        ],
        headers,
      },
    ]
  },
}

export default config
Quest for Codev2.0.0
/
SIGN IN