13e769a301
The current message isn't very clear about `"use server" function` and `"use server" file`, and there's no link to docs to explain it further: ``` "use server" functions are not allowed in client components. You can import them from a "use server" file instead. ``` This PR makes it a bit more verbose: ``` It is not allowed to define inline "use server" annotated Server Actions in Client Components. You can either mark the entire file by putting "use server" at the top, or pass them down through props from a Server Component. Read more: https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions#with-client-components ``` |
||
---|---|---|
.. | ||
crates | ||
native | ||
package.json | ||
README.md |
@next/swc
This package is responsible for swc compilation customized for next.js
Development
Run tests
cargo test
# Update snapshots and fixtures for tests
UPDATE=1 cargo test
Format code before submitting code
cargo fmt
Build the binary to integrate with next.js
pnpm build-native