next.js/test/e2e/on-request-error/server-action-error/app/client/actions.js
actions.js16 lines285 B
'use server'

import { notFound, redirect } from 'next/navigation'

export async function redirectAction() {
  redirect('/another')
}

export async function notFoundAction() {
  notFound()
}

export async function serverLog(content) {
  throw new Error('[server-action]:' + content)
}
Quest for Codev2.0.0
/
SIGN IN