mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
See: https://github.com/vercel/next.js/security/advisories/GHSA-mq59-m269-xvcx and [16.1.7](https://github.com/vercel/next.js/releases/tag/v16.1.7) --------- Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
11 lines
215 B
JavaScript
11 lines
215 B
JavaScript
'use server'
|
|
|
|
import { cookies } from 'next/headers'
|
|
|
|
export async function log() {
|
|
console.log('action invoked')
|
|
const cookieStore = await cookies()
|
|
cookieStore.set('log-action-invoked', '1')
|
|
return 'hi'
|
|
}
|