jstack
jstack copied to clipboard
Build seriously fast, lightweight and end-to-end typesafe Next.js apps
When there's a validation error on the input schema, the error thrown by zod is not catched, and instead an Internal Server Error is shown. src/server/jstack.ts: ```ts import { jstack...
When using jStack with clerk, and using wrangler for this, you have to create an auth middleware and a clerk middleware. The clerk middleware however, likes to be picky about...
https://github.com/user-attachments/assets/45445152-58b2-4ff9-9ef6-8cabbed3dfc1
I'm using the publicProcedure as it is in the scaffold: ```typescript export const publicProcedure = j.procedure.use(databaseMiddleware); ``` And I have a route with some methods, between them I have this:...
 String does not match the pattern of "^(?:(?:@(?:[a-z0-9-*~][a-z0-9-*._~]*)?/[a-z0-9-._~])|[a-z0-9-~])[a-z0-9-._~]*$". [Codeium: Explain Problem](vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html) The name of the package. Got this error. It should be easy to fix.
 added: // NPM package name validation regex const VALID_PACKAGE_NAME = /^(?:(?:@(?:[a-z0-9-~][a-z0-9-.~]*)?\/)?[a-z0-9-._~]*[a-z0-9-~]|[a-z0-9-~])$/ // Function to sanitize package name const sanitizePackageName = (name: string): string => { return name .toLowerCase() .replace(/[^a-z0-9-~]/g,...
As pointed out on Theo's stream/video the app does not init a git repo when running `create-jstack-app@latest`
## Context The current validation of inputs happens inside the router helper function, and the schema validation is done against either the parsed query or the parsed body depending on...