feat: add nuxt example#21
Conversation
Scaffolds a minimal Nuxt frontend (via create-nuxt) wired to the zero-native Zig shell, mirroring the vue example. Static output is generated with `nuxt generate` into `frontend/.output/public` and the dev server runs on port 3000.
|
@posva is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
| .spa_fallback = true, | ||
| .dev = .{ | ||
| .url = "http://127.0.0.1:3000/", | ||
| .command = .{ "pnpm", "--dir", "frontend", "run", "dev", "--host", "127.0.0.1" }, |
There was a problem hiding this comment.
I couldn't get npm to work on any of the examples but I bet that's just an issue on my end
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
The PR has a working minimal nuxt example but uses
pnpmand has apnpm-lock.yamlfile. Also it uses the locally built zero-native (from ../..)I had a hard time running the examples locally with npm, so I switched to pnpm which worked out fine. The example uses the locally built binary but I think you use the examples as templates for
zero-native init my-app --frontend ..., so this is just a draft at the moment.I did try to follow CONTRIBUTING.md but it wasn't enough for me to get started with the project.
In case it's relevant, I get these errors from
npm i --prefix frontend: