GithubHelp home page GithubHelp logo

A lot of tiny big wins about create-t3-app HOT 9 CLOSED

t3-oss avatar t3-oss commented on July 22, 2024 103
A lot of tiny big wins

from create-t3-app.

Comments (9)

t3dotgg avatar t3dotgg commented on July 22, 2024 16

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.

juliusmarminge avatar juliusmarminge commented on July 22, 2024 9

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.

KATT avatar KATT commented on July 22, 2024 6

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.

JacobMGEvans avatar JacobMGEvans commented on July 22, 2024

Subscribed. I want to follow up.

from create-t3-app.

zomars avatar zomars commented on July 22, 2024

Any monorepo recommendations that you would like to add? 🙏

from create-t3-app.

zomars avatar zomars commented on July 22, 2024

Done

from create-t3-app.

juliusmarminge avatar juliusmarminge commented on July 22, 2024

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.

juliusmarminge avatar juliusmarminge commented on July 22, 2024

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.

juliusmarminge avatar juliusmarminge commented on July 22, 2024

tRPC inference helpers

https://github.com/trpc/examples-next-prisma-starter/blob/a07a8d1bd1ed4a9af4fd7cd6130ee92383082419/src/utils/trpc.ts#L34-L48

Implemented in 1fcec81 (and #203 for @next)

from create-t3-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.