next.js/test/production/app-dir/symbolic-file-links/somewhere-else/src/i18n.ts
i18n.ts12 lines335 B
import { cookies } from 'next/headers'

// The purpose of this file is to demonstrate that without proper symbolic file checking
// next accidentally marks files in the root of the project as client files.
export default async function () {
  const locale = (await cookies()).get('locale')?.value ?? 'en'

  return {
    locale,
  }
}
Quest for Codev2.0.0
/
SIGN IN