Comments (9)
There's a lot in here I think we should add. Going to chat w/ the core maintainers and see what our path forward is
from create-t3-app.
Closing as completed. We have decided not to implement the test and CI parts for now, and the VSCode stuff is up for discussion in PR #228. Thank you very much for all the suggestions and enhancements!
from create-t3-app.
Any monorepo recommendations that you would like to add? 🙏
@zomars, I think monorepo is out of scope for create-t3-app, ask that question in https://github.com/trpc/trpc/discussions :)
from create-t3-app.
Subscribed. I want to follow up.
from create-t3-app.
Any monorepo recommendations that you would like to add? 🙏
from create-t3-app.
from create-t3-app.
Safe environment variables
Environment variables should be validated when a project is built. Having the wrong env vars is a very common production issue that is hellish as you usually don't notice it straight-away. It's better to just crash the build if something's wrong.
Zod to the rescue!
https://github.com/trpc/examples-next-prisma-starter/blob/a07a8d1bd1ed4a9af4fd7cd6130ee92383082419/src/server/env.js#L1-L24
https://github.com/trpc/examples-next-prisma-starter/blob/a07a8d1bd1ed4a9af4fd7cd6130ee92383082419/next.config.js#L3
It's a .js-file because Next.js doesn't support next.config.ts, but it can still be validated by TypeScript: https://github.com/trpc/examples-next-prisma-starter/blob/a07a8d1bd1ed4a9af4fd7cd6130ee92383082419/tsconfig.json#L25-L31
Implemented in #147
from create-t3-app.
Type-safety
You can have next.config.js typesafe.
https://github.com/trpc/examples-next-prisma-starter/blob/main/next.config.js
Implemented in #205
from create-t3-app.
tRPC inference helpers
Implemented in 1fcec81 (and #203 for @next)
from create-t3-app.
Related Issues (20)
- bug: Default font doesn't work with Pages Router + Tailwind HOT 2
- bug: ERR_MODULE_NOT_FOUND on drizzle nextauth option HOT 1
- feat: Out of the box React Query ESLint plugin when using tRPC HOT 3
- bug: Drizzle needs pg
- bug: Problems using example in docs for exposing tRPC procedures externally
- bug: "Error: Unsafe assignment of an `any` value" when trying to run "npm run build" on a new scaffolded app HOT 5
- bug: Prisma link is presented in Readme.md file when Drizzle was selected as ORM HOT 1
- feat: route level typesafety HOT 1
- bug: remove abandoned tailwindcss-animate package on scafolded tailwindcss projects HOT 2
- docs: Update Docker documentation
- feat(prisma): support typings for `.$extends` HOT 2
- Error from sed in start-database.sh
- bug: `useSuspenseQuery` will get "UNAUTHORIZED" tRPC error HOT 6
- bug: Uncommented out line in generated .env file
- chore: update drizzle and planetscale configuration
- bug: app router useSuspenseQuery infinite loop HOT 1
- bug: Warning for planetscale's driver is shown regardless of db provider
- docs: number of stars on create.t3.gg is wrong HOT 4
- bug: can't connect to postgresql after initial the repo HOT 1
- feat: ESLint rules for Drizzle ORM HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-t3-app.