rsnext/test/e2e/app-dir/set-cookies/next.config.mjs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
484 B
JavaScript
Raw Normal View History

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