Skip to content

Commit 157e7d1

Browse files
juliusmarmingenexxelnOmer-Shahargithub-actions[bot]c-ehrlich
authored
chore: next merge 2022 09 19 (t3-oss#482)
* fix: typo in T3 axiom t3-oss#3 * chore: update ci stuff * docs: write some docs (t3-oss#323) * docs: change description and add nexxel's website in package.json * docs: add faq page * docs: add tutorials to generated readme * docs: rename getting started to t3 axioms and add advanced usage * docs: add me3 in t3 collection * docs: make p capital * docs: update contributing guide * docs: update link to t3 axiom in faq * docs: fix link to docs in navbar * docs: update contributing guide, can't add dev script for cli * docs: dark theme by default * chore: add some scripts * docs: add scripts to contributing guide Co-authored-by: Julius Marminge <[email protected]> * feat: wrap createContext in helperfunc to make it independent of req/res (t3-oss#324) * feat: make createContext independent of req/res * chore: add changeset * fix: typo * fix: missing async * fix: typo in auth-context.ts (t3-oss#328) * chore(release): version packages (t3-oss#326) * fix: build fails on trpc, trpc+prisma (t3-oss#334) * fix: build fails on trpc, trpc+next * chore: add changeset * fix: invalid typeof window comparison to undefined (t3-oss#335) * chore(release): version packages (t3-oss#336) * feat: make links in docs a contrasting color (t3-oss#339) * fix: use auth instead of question while merging the router (t3-oss#330) * chore(release): version packages (t3-oss#341) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(docs): migrate docs to astro (t3-oss#340) * fix: tsconfig include + clean script (t3-oss#345) * chore(release): version packages (t3-oss#347) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: add eol to eslint prettier (t3-oss#351) * chore: update ci * docs: add new landing page (t3-oss#350) * docs: write tailwind section in Why page (t3-oss#349) * docs: write why tailwind Based on their landing page, theo's stream & this tweet from the creator https://twitter.com/adamwathan/status/1560749403131895808 * docs: break tw Why in paragraphs, add zen-mode * docs: typos * docs: add "and unique" to the building blocks section of tailwind's why Just a bit of a banter for all who thinks it compares to finished design systems Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: Shoubhit Dash <[email protected]> Co-authored-by: Julius Marminge <[email protected]> * chore: update ci * feat: updated docker instructions (t3-oss#333) * docs: Begin migration to Tailwind (t3-oss#359) * feat: add loggers during dev (t3-oss#353) * feat: more updated docker instructions (t3-oss#354) * feat: add links to next.config.mjs * fix: whitespace * feat: relative path links in readme * fix: link in readme Co-authored-by: Julius Marminge <[email protected]> * chore(release): version packages (t3-oss#360) * chore: Sort `package.json` when in `noInstallMode` (t3-oss#357) * docs: Fix Mobile Menu, Light Mode Updated, Copy to Clipboard Fixed (t3-oss#363) * fix: revert prisma client teardown (t3-oss#365) * chore(release): version packages (t3-oss#361) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat: add wrapper for `unstable_getServerSession` (t3-oss#366) * fix(www): build errors and CI improvements (t3-oss#367) * fix(www): build errors and CI improvements * chore: add dep * chore: add dep * fix: deps * chore: deps * chore: deps & ts * fix: interface props and rip preact * chore: revamp * chore: more icons * chore: rip preact * chore: lock * chore: esm? * fix: typedefs for env * chore: fixes? * fix: silence ts-errors for now * fix: version and env + refactor file structure (t3-oss#370) * chore(release): version packages (t3-oss#369) * fix: throw error on missing snowpack github token (t3-oss#373) * fix: throw error on missing snowpack github token * feat: don't use default value for snowpack github token * fix: astro build (t3-oss#372) * fix: astro build * chore: rename components (part 1) * chore: rename components (part 2) * chore: update component import filenames * feat: allow pascalCase in .eslintrc Co-authored-by: Julius Marminge <[email protected]> * feat: add continue and overwrite option on existing dir (t3-oss#375) * feat: add abort/clear/overwrite options on existing dir * chore: add changeset * feat: add 'recommended' to 'Abort installation' * feat: add confirmation before overwriting existing dir * docs: update styling + add environment variables page (t3-oss#376) * docs: fix styling on footer, contributions, features, update nextauth image, add env var page * fix: format * fix: styling on markdown to be flex * fix: right sidebar alignment Co-authored-by: Julius Marminge <[email protected]> * chore: ci caching etc (t3-oss#374) * feat: all technology cards in all templates (t3-oss#381) * feat: include all cards on all index.tsx files * chore: add changeset Co-authored-by: Julius Marminge <[email protected]> * docs: improve docker instuctions (t3-oss#384) * feat: updated UI design of landing page (t3-oss#385) * feat: landing page design update - Added workspaces to package.json & updated design of the landing page * fix: fixed UI updates - removed workspaces from package.json - updated Astro version to 1.1.2 - fixed margins on stack blocks * fix: fixed pnpm lock * feat: safeguards for git repos (t3-oss#383) * chore: fix scripts * feat: add safeguards for git repos * fix: logging name * fix: spinner * chore: changeset * docs: add tailwind, prisma, nextauth (t3-oss#382) * feat: styling on index.tsx without tailwind (t3-oss#388) * feat: non-tw index.tsx with styling * chore: add changeset * feat: remove index.module.css in tailwind installer * fix: remove unused import * refactor: move stuff around (t3-oss#391) * chore(ci): matrix e2e test (t3-oss#392) * chore(ci): fix typo in index.ts (t3-oss#393) seperated -> separated * refactor: easier to understand client env warning (t3-oss#394) * chore(release): version packages (t3-oss#377) * chore: git script * feat: forward pass trpc headers during ssr (t3-oss#396) * docs: update tRPC v10 docs link again (t3-oss#403) # Update tRPC v10 docs link again - [x] I reviewed linter warnings + errors, resolved formatting, types and other issues related to my work - [x] The PR title follows the convention we established [conventional-commit](https://www.conventionalcommits.org/en/v1.0.0/) - [ ] I performed a functional test on my final commit --- The `alpha.` site now redirects to the main site, which by default is the 9.x docs (try in incognito/private window), this change makes it go to the v10 docs --- 💯 * refactor: move createProtectedRouter to auth-context.ts (t3-oss#395) * fix: docker guide doesn't work with prisma (t3-oss#399) * chore(release): version packages (t3-oss#400) * feat: add basic i18n configuration in next.config (t3-oss#387) * chore(release): version packages (t3-oss#408) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix: gitignore * docs: add typescript, nextjs, remove old style tags (t3-oss#411) * docs: remove all remaining style tags * docs: fix more menu, add nextjs * docs: add typescript * docs: style algolia search, add powered by vercel * docs: custom scrollbar, text selection * docs: update typescript * docs: fix algolia styling on landing page * fix: typo, move quote up * docs: move quote above what is typescript * fix: quote light mode styling * fix: remove unnecessary singlequote in tailwind classname (t3-oss#419) * fix: Remove unnecessary singlequote * Create strong-spoons-obey.md Co-authored-by: Shoubhit Dash <[email protected]> * docs: minor improvements (t3-oss#420) * docs: added spacing to headers in left sidebar * fix: "On this page" text style in light mode * docs: fixed inconsistency with "More" text styling * fix: removed scroll behavior when theme was toggled * docs: added sticky sidebars Co-authored-by: Shoubhit Dash <[email protected]> * chore(release): version packages (t3-oss#421) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix(template): missing ctx when using ssr with trpc (t3-oss#416) * feat: error handler for trpc (t3-oss#413) * docs: Flesh out learning resource section of FAQ (t3-oss#425) * feat: direct developer to add schema from .env to schema.mjs for zod validation (t3-oss#430) * chore(release): version packages (t3-oss#423) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix: contributor avatar layout (t3-oss#433) * feat: add prettier-plugin-astro to .prettierrc (t3-oss#434) Co-authored-by: Julius Marminge <[email protected]> * fix(ui): copy btn + lighthouse ci (t3-oss#437) * fix(ui): copy btn * chore(ci): adds lighthouse to ci * fix: script * fix: ci * fix: script * fix: hardcode url? * fix: script * fix: script * chore: update installation.md * fix: regex matcher * fix: get preview url (t3-oss#438) * fix: get preview url * chore: v3 * fix: get url script * fix: invalid script * fix: script * fix: script * Update lighthouse.yml * Update lighthouse.yml * chore(www): ui contrasts + disable lightmode (t3-oss#439) * chore(www): ui contrasts * chore: seo * chore: seo * chore: disable lightmode * chore: rip theme * feat: cursor-pointer on theme toggle button (t3-oss#435) * feat: cursor-pointer on theme toggle button * feat: use clsx for button classes Co-authored-by: Shoubhit Dash <[email protected]> Co-authored-by: Julius Marminge <[email protected]> * don't make lighthouse comment if vercel_url not found * docs: clear helper types description (t3-oss#441) * feat: added light mode back (t3-oss#443) * feat: better cli text when scaffolding in '.' (t3-oss#446) * feat: better cli text when scaffolding in '.' * chore: add changeset * feat(docs): refined instructions for contributing (t3-oss#452) * chore(release): version packages (t3-oss#451) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * refactor(docs): major refactor and configure theme (t3-oss#447) * refactor: themetogglebutton * chore: prepare design system color scheme * refactor: default theme and dont shadow * chore: add some colors atleast * fix: linter * chore: swap base * chore: delete index.css * refactor: simplify * chore: remove unused * chore: more unused removed * fix: use correct button text color on website banner (t3-oss#450) * chore: remove comment * chore: that's no longer needed * refactor: using path instead of passing prop * fix: bug * chore: version bumps * chore: apply t3-oss#449 * fix: css fixes and brought back the SidebarToggle functionality (t3-oss#453) * fix: remove unnecessary underlines in components on landing page (t3-oss#455) * chore: styling changes on docs (t3-oss#448) * fix: round t3 logo on website and docs (t3-oss#456) * fix: fix theme flashing * chore: force light * chore: might as well inline that Co-authored-by: Tim <[email protected]> Co-authored-by: Gabriel De Andrade <[email protected]> * fix: astro build (t3-oss#458) * fix: some ui (t3-oss#459) * fix: ui improvements (t3-oss#460) * fix: add astro formatting to .lintstagedrc (t3-oss#463) (t3-oss#464) * docs: write Prisma section in Why page (t3-oss#402) * refactor(blog): rework blog ui and improve scrolling behavior (t3-oss#465) * refactor: rename layout and use mdx (t3-oss#466) * refactor: rename layout and use mdx * refactor: revert mdx, why no work astro??? * refactor(format): astro config * fix: docs right sidebar overlaying content (t3-oss#467) * feat(docs): minor tweaks and improvements (t3-oss#469) * feat(docs): add heading in env variables * feat(docs): add usage with prisma section (unfinished) * feat(docs): add nextjs discord link * feat(docs): add tailwind usage sections and discord link * feat(docs): fix video layout and add link to handbook * feat(footer): remove t3 logo and navigations links from footer * feat(docs): add next auth content in why page * feat(docs): add command to install next version * fix: trpc v10 docs link * fix(t3-collection): add s after julius' * feat(docs): make docker guide consistent with the rest of the docs * feat(docs): add missing fullstop in vercel guide * feat(sidebar): vercel first, docker second * feat(footer): add vercel logo, remove ct3a logo * fix: apply and use theme colors on landing page and algolia (t3-oss#462) * fix: apply and use theme colors on landing page and algolia * fix: use correct color in algolia search box * fix: faq link in footer * feat: switch primary font to Inter * feat: improve theme test page * feat: improve docs sidebar * feat: make algolia search respect theme preferences * fix: visually improve quote from Theo * fix: change color-base to color-default to prevent overlap with tailwind * feat: make footer background transparent on landing page * fix: contrast of left nav links in light mode * feat: add documentation button animation * fix: make footer always transparent * fix: sidebar * fix: left sidebar z-index Co-authored-by: Julius Marminge <[email protected]> * fix(ci): graceful cancel? * fix(ci): graceful cancel 2? * fix(ci): graceful cancel 3? * fix(ci): graceful cancel 4? * fix(ci): graceful cancel 5? * refactor: docs and landing page layouts (t3-oss#475) * refactor: docs and landing page layouts * fix: docs page heading links * refactor: docs table of contents * feat: add gitpod support (t3-oss#471) * feat: add gitpod.yml * refactor: remove gitpod prebuilds for now Co-authored-by: Shoubhit Dash <[email protected]> * create CODEOWNERS * Update CODEOWNERS * Update CODEOWNERS * docs: added portfolio to OSS links (t3-oss#478) * chore: bump to v10 beta * fix: bad merge 1 * fix: bad merge 2 * chore: check build Co-authored-by: Shoubhit Dash <[email protected]> Co-authored-by: Omer Shahar <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Christopher Ehrlich <[email protected]> Co-authored-by: Julian Read <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Kroucher <[email protected]> Co-authored-by: Igor Bedesqui <[email protected]> Co-authored-by: Gejsi <[email protected]> Co-authored-by: Peter Colapietro <[email protected]> Co-authored-by: Kyuu <[email protected]> Co-authored-by: Piotr <[email protected]> Co-authored-by: Ikko Ashimine <[email protected]> Co-authored-by: nadilas <[email protected]> Co-authored-by: Roy Henriquez <[email protected]> Co-authored-by: Samuel Gunter <[email protected]> Co-authored-by: Pearcekieser <[email protected]> Co-authored-by: Manuel Amaro Valle <[email protected]> Co-authored-by: Sor4chi <[email protected]> Co-authored-by: Mike Fitzgerald <[email protected]> Co-authored-by: ted-pulsen <[email protected]> Co-authored-by: Anthony Campolo <[email protected]> Co-authored-by: Benjamin Margolius <[email protected]> Co-authored-by: Gabriel De Andrade <[email protected]> Co-authored-by: Tim <[email protected]> Co-authored-by: Hans Gabriel B. Daduya <[email protected]> Co-authored-by: Josh Hyde <[email protected]>
1 parent d5591c7 commit 157e7d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2728
-985
lines changed

.github/CODEOWNERS

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
2+
3+
4+
* @juliusmarminge @nexxeln @TheoBr

.github/workflows/lighthouse.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Vercel Preview URL Lighthouse Audit
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
7+
jobs:
8+
generate_lighthouse_audit:
9+
timeout-minutes: 30
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Get Vercel preview URL
13+
id: get_preview_url
14+
uses: actions/github-script@v3
15+
with:
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
script: |
18+
const comment = context.payload.comment;
19+
const regex = /https:\/\/[a-z0-9-]+\.vercel\.app/g;
20+
const matches = comment.body.match(regex);
21+
let previewUrl = "";
22+
if (matches && matches.length) {
23+
previewUrl = matches[0];
24+
console.log('Preview url found:', previewUrl);
25+
}
26+
console.log("No preview url found.");
27+
core.setOutput('vercel_preview_url', previewUrl);
28+
29+
- name: Add comment to PR
30+
if: ${{ steps.get_preview_url.outputs.vercel_preview_url != '' }}
31+
id: loading_comment_to_pr
32+
uses: marocchino/sticky-pull-request-comment@v1
33+
with:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
number: ${{ github.event.issue.number }}
36+
header: lighthouse
37+
message: |
38+
Running Lighthouse audit...
39+
40+
- name: Checkout repository
41+
if: ${{ steps.get_preview_url.outputs.vercel_preview_url != '' }}
42+
uses: actions/checkout@v3
43+
44+
- name: Audit preview URL with Lighthouse
45+
if: ${{ steps.get_preview_url.outputs.vercel_preview_url != '' }}
46+
id: lighthouse_audit
47+
uses: treosh/lighthouse-ci-action@v3
48+
with:
49+
urls: |
50+
${{ steps.get_preview_url.outputs.vercel_preview_url }}
51+
uploadArtifacts: true
52+
temporaryPublicStorage: true
53+
- name: Format lighthouse score
54+
if: ${{ steps.get_preview_url.outputs.vercel_preview_url != '' }}
55+
id: format_lighthouse_score
56+
uses: actions/github-script@v3
57+
with:
58+
github-token: ${{secrets.GITHUB_TOKEN}}
59+
script: |
60+
const result = ${{ steps.lighthouse_audit.outputs.manifest }}[0].summary
61+
const links = ${{ steps.lighthouse_audit.outputs.links }}
62+
63+
const formatResult = (res) => Math.round((res * 100))
64+
Object.keys(result).forEach(key => result[key] = formatResult(result[key]))
65+
66+
const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟠' : '🔴'
67+
68+
const comment = [
69+
`⚡️ [Lighthouse report](${Object.values(links)[0]}) for the changes in this PR:`,
70+
'| Category | Score |',
71+
'| --- | --- |',
72+
`| ${score(result.performance)} Performance | ${result.performance} |`,
73+
`| ${score(result.accessibility)} Accessibility | ${result.accessibility} |`,
74+
`| ${score(result['best-practices'])} Best practices | ${result['best-practices']} |`,
75+
`| ${score(result.seo)} SEO | ${result.seo} |`,
76+
`| ${score(result.pwa)} PWA | ${result.pwa} |`,
77+
' ',
78+
`*Lighthouse ran on [${Object.keys(links)[0]}](${Object.keys(links)[0]})*`
79+
].join('\n')
80+
81+
core.setOutput("comment", comment);
82+
83+
- name: Add comment to PR
84+
if: ${{ steps.get_preview_url.outputs.vercel_preview_url != '' }}
85+
id: comment_to_pr
86+
uses: marocchino/sticky-pull-request-comment@v1
87+
with:
88+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
number: ${{ github.event.issue.number }}
90+
header: lighthouse
91+
message: |
92+
${{ steps.format_lighthouse_score.outputs.comment }}

.gitpod.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tasks:
2+
- init: pnpm install
3+
vscode:
4+
extensions:
5+
- astro-build.astro-vscode
6+
- bradlc.vscode-tailwindcss

.lintstagedrc

+3
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
],
66
"*.{json,md,mdx}": [
77
"prettier --write"
8+
],
9+
"www/**/*.astro": [
10+
"prettier --write"
811
]
912
}

.prettierrc

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
"jsxSingleQuote": false,
77
"semi": true,
88
"trailingComma": "all",
9-
"tabWidth": 2
10-
}
9+
"tabWidth": 2,
10+
"plugins": [
11+
"prettier-plugin-astro"
12+
]
13+
}

CONTRIBUTING.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pnpm install
4141

4242
### Implement your changes
4343

44-
This project is a [Turborepo](https://turborepo.org/) monorepo. The code for the CLI is in the `cli` directory, and the docs is in the `www` directory. Now you're all setup and can start implementing your changes.
44+
This project is a [Turborepo](https://turborepo.org/) monorepo. The code for the CLI is in the `cli` directory, and the docs is in the `www` directory. This project is a [Turborepo](https://turborepo.org/) monorepo. The code for the CLI is in the `cli` directory, and the docs is in the `www` directory. Now you're all setup and can start implementing your changes.
4545

4646
Here are some useful scripts for when you are developing:
4747

@@ -57,7 +57,11 @@ Here are some useful scripts for when you are developing:
5757
| `pnpm lint:fix` | Lints the code and fixes any errors |
5858
| `pnpm check` | Checks your code for typeerrors, formatting and linting |
5959

60-
When making commits, make sure to follow the [convential commit](https://www.conventionalcommits.org/en/v1.0.0/) guidelines, i.e. prepending the message with `feat:`, `fix:`, `chore:`, `docs:`, etc...
60+
When making commits, make sure to follow the [convential commit](https://www.conventionalcommits.org/en/v1.0.0/) guidelines, i.e. prepending the message with `feat:`, `fix:`, `chore:`, `docs:`, etc... You can use `git status` to double check which files have not yet been staged for commit:
61+
62+
```bash
63+
git add <file> && git commit -m "feat/fix/chore/docs: commit message"
64+
```
6165

6266
### When you're done
6367

cli/CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## 5.12.0
4+
5+
### Minor Changes
6+
7+
- [#446](https://github.com/t3-oss/create-t3-app/pull/446) [`6f63ec6`](https://github.com/t3-oss/create-t3-app/commit/6f63ec65201a077e534ec89c4ef18bfa07a30331) Thanks [@c-ehrlich](https://github.com/c-ehrlich)! - feat: better cli text when scaffolding in '.'
8+
9+
## 5.11.0
10+
11+
### Minor Changes
12+
13+
- [#430](https://github.com/t3-oss/create-t3-app/pull/430) [`306777a`](https://github.com/t3-oss/create-t3-app/commit/306777a5513c365dfb3525c1484459236734a289) Thanks [@benmarg](https://github.com/benmarg)! - feat: direct developer to add schema from .env to schema.mjs for zod validation
14+
15+
### Patch Changes
16+
17+
- [#416](https://github.com/t3-oss/create-t3-app/pull/416) [`14b6d4a`](https://github.com/t3-oss/create-t3-app/commit/14b6d4a0764f57ece45749724c5b12a85544733e) Thanks [@xpressivecode](https://github.com/xpressivecode)! - fix(template): missing ctx when using ssr with trpc
18+
19+
## 5.10.3
20+
21+
### Patch Changes
22+
23+
- [#419](https://github.com/t3-oss/create-t3-app/pull/419) [`554de8f`](https://github.com/t3-oss/create-t3-app/commit/554de8f2838a8d539d81bcb520f121a7e14e3c84) Thanks [@sor4chi](https://github.com/sor4chi)! - Remove unnecessary singlequote in tailwind classname
24+
325
## 5.10.2
426

527
### Patch Changes

cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-t3-app",
3-
"version": "5.10.2",
3+
"version": "5.12.0",
44
"description": "Create web application with the t3 stack",
55
"license": "MIT",
66
"repository": {

cli/src/installers/index.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ export const dependencyVersionMap = {
3535
postcss: "^8.4.14",
3636

3737
// tRPC
38-
"@trpc/client": "10.0.0-proxy-alpha.70",
39-
"@trpc/server": "10.0.0-proxy-alpha.70",
40-
"@trpc/react": "10.0.0-proxy-alpha.70",
41-
"@trpc/next": "10.0.0-proxy-alpha.70",
38+
"@trpc/client": "10.0.0-proxy-alpha.81",
39+
"@trpc/server": "10.0.0-proxy-alpha.81",
40+
"@trpc/react": "10.0.0-proxy-alpha.81",
41+
"@trpc/next": "10.0.0-proxy-alpha.81",
42+
// "@trpc/client": "10.0.0-beta.1",
43+
// "@trpc/server": "10.0.0-beta.1",
44+
// "@trpc/react": "10.0.0-beta.1",
45+
// "@trpc/next": "10.0.0-beta.1",
4246
"@tanstack/react-query": "^4.2.3",
4347
superjson: "^1.9.1",
4448
} as const;

cli/template/addons/env/auth-schema.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { z } from "zod";
66
* This way you can ensure the app isn't built with invalid env vars.
77
*/
88
export const serverSchema = z.object({
9+
NODE_ENV: z.enum(["development", "test", "production"]),
910
NEXTAUTH_SECRET: z.string(),
1011
NEXTAUTH_URL: z.string().url(),
1112
DISCORD_CLIENT_ID: z.string(),

cli/template/base/.env-example

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Note that not all variables here might be in use for your selected configuration
2+
# When adding additional env variables, the schema in /env/schema.mjs should be updated accordingly
23

34
# Prisma
45
DATABASE_URL=file:./db.sqlite

cli/template/base/README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ If you are not familiar with the different technologies used in this project, pl
1717
- [Next-Auth.js](https://next-auth.js.org)
1818
- [Prisma](https://prisma.io)
1919
- [TailwindCSS](https://tailwindcss.com)
20-
- [tRPC](https://trpc.io) (using @next version? [see v10 docs here](https://alpha.trpc.io))
20+
- [tRPC](https://trpc.io) (using @next version? [see v10 docs here](https://trpc.io/docs/v10/))
21+
22+
Also checkout these awesome tutorials on `create-t3-app`.
23+
24+
- [Build a Blog With the T3 Stack - tRPC, TypeScript, Next.js, Prisma & Zod](https://www.youtube.com/watch?v=syEWlxVFUrY)
25+
- [Build a Live Chat Application with the T3 Stack - TypeScript, Tailwind, tRPC](https://www.youtube.com/watch?v=dXRRY37MPuk)
26+
- [Build a full stack app with create-t3-app](https://www.nexxel.dev/blog/ct3a-guestbook)
27+
- [A first look at create-t3-app](https://dev.to/ajcwebdev/a-first-look-at-create-t3-app-1i8f)
2128

2229
Also checkout these awesome tutorials on `create-t3-app`.
2330

cli/template/base/src/env/schema.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { z } from "zod";
66
* This way you can ensure the app isn't built with invalid env vars.
77
*/
88
export const serverSchema = z.object({
9-
// SERVERVAR: z.string(),
9+
NODE_ENV: z.enum(["development", "test", "production"]),
1010
});
1111

1212
/**

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"eslint": "^8.22.0",
5757
"eslint-config-prettier": "^8.5.0",
5858
"eslint-config-turbo": "^0.0.3",
59-
"eslint-plugin-astro": "^0.17.1",
59+
"eslint-plugin-astro": "^0.19.0",
6060
"eslint-plugin-no-only-tests": "^2.6.0",
6161
"eslint-plugin-prettier": "^4.2.1",
6262
"eslint-plugin-react": "^7.31.0",

0 commit comments

Comments
 (0)