antfu

nuxt-server-fn

Server functions in client for Nuxt 3

by antfu

TypeScript

TypeScript92.2%
Vue6.9%
JavaScript0.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 1y ago
See all on GitHub →
gsxdsm

Clear and concise description of the problem When a file is added or removed from server/functions, the handlers should regenerate. Suggested solution Regenerate handlers on file change Alternative _No response_ Additional context _No response_ Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

gsxdsm · 1y ago
BobbieGoede

Description Updates nuxt module builder (does not build cjs by default) and changes the exports to use esm only. This also changes the playground setup slightly (requires running or before it) so that either a stub or a build can be used, the aliases ensure the api/client exports work when using stubs (so maybe we don't want these?). Linked Issues Additional context

BobbieGoede · 1y ago
roonie007

Describe the bug When using this module with simply running everything works perfectly, but as soon as we start using it within docker ( dev environment ), we get the wrong path on the generated files. For example, for an app that is running inside a docker container and the whole app is mounted on this path but the actually code on the machine is on this path , the generated files will use the docker mounted path . !image So maybe the solution is to use the relative path instead of the absolute path ? Reproduction Any simple project with the server-fn module running inside a docker container System Info Used Package Manager yarn Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [ ] The provided reproduction is a minimal reproducible of the bug.

roonie007 · 1y ago
BobbieGoede

Description This changes the function imports to be relative in the generated templates, I'm not sure if there are any documented conventions on making it relative, in my experience it works nicer with things like docker containers. Before After Linked Issues Additional context

BobbieGoede · 1y ago
Structured data for AI agents

Repository: antfu/nuxt-server-fn. Description: Server functions in client for Nuxt 3 Stars: 288, Forks: 11. Primary language: TypeScript. Languages: TypeScript (92.2%), Vue (6.9%), JavaScript (0.9%). License: MIT. Latest release: v1.0.1 (1y ago). Open PRs: 1, open issues: 6. Last activity: 1y ago. Community health: 85%. Top contributors: antfu, BobbieGoede, johannschopplich, olivermaldonado, danielroe, wobsoriano, xantiagoma.