GitShow/antfu/nuxt-server-fn
antfu

nuxt-server-fn

Server functions in client for Nuxt 3

by antfu
Star on GitHubForknpm

TypeScript

286 stars12 forks7 contributorsQuiet · 10mo agoSince 2022v1.0.1MIT

Meet the team

See all 7 on GitHub →
antfu
antfu58 contributions
BobbieGoede
BobbieGoede2 contributions
johannschopplich
johannschopplich2 contributions
olivermaldonado
olivermaldonado2 contributions
danielroe
danielroe1 contribution
wobsoriano
wobsoriano1 contribution
xantiagoma
xantiagoma1 contribution

Languages

View on GitHub →
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 10mo ago
See all on GitHub →
lyvvq9296
Failed to resolve import on windows systemOpenIssue

Additional context nuxt-server-fn it reports on windows but it runs normal on MacOS

lyvvq9296 · 1y ago
gsxdsm
Add support for functions in sub directories of server/functionsOpenPR

Description Adds support for functions that exist in folders under server/functions/, like "server/functions/users/user.ts" Linked Issues #15 Additional context

gsxdsm · 1y ago
gsxdsm
Handlers should regenerate when files are added/removed from server/functions directoryOpenIssue

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

Recent fixes

View closed PRs →
BobbieGoede
feat!: esm onlyMergedPR

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 · 10mo ago
roonie007
Wrong file paths within Docker environmentClosedIssue

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 · 10mo ago
BobbieGoede
fix: use relative paths in templatesMergedPR

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 · 10mo ago
Structured data for AI agents

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

·@ofershap

Replace github.com with gitshow.dev