Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@
"tsup": "^6.7.0",
"type-fest": "^3.13.1",
"typescript": "^5.8.2",
"zod": "^3.24.2"
"zod": "next"
}
}
2 changes: 1 addition & 1 deletion cli/template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"next": "^15.2.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"zod": "^3.24.2"
"zod": "next"
},
"devDependencies": {
"@types/node": "^20.14.10",
Expand Down
1 change: 0 additions & 1 deletion cli/template/extras/src/env/with-auth-db-planetscale.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const env = createEnv({
AUTH_DISCORD_ID: z.string(),
AUTH_DISCORD_SECRET: z.string(),
DATABASE_URL: z
.string()
.url()
.refine(
(str) => !str.includes("YOUR_MYSQL_URL_HERE"),
Expand Down
2 changes: 1 addition & 1 deletion cli/template/extras/src/env/with-auth-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const env = createEnv({
: z.string().optional(),
AUTH_DISCORD_ID: z.string(),
AUTH_DISCORD_SECRET: z.string(),
DATABASE_URL: z.string().url(),
DATABASE_URL: z.url(),
NODE_ENV: z
.enum(["development", "test", "production"])
.default("development"),
Expand Down
1 change: 0 additions & 1 deletion cli/template/extras/src/env/with-db-planetscale.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const env = createEnv({
*/
server: {
DATABASE_URL: z
.string()
.url()
.refine(
(str) => !str.includes("YOUR_MYSQL_URL_HERE"),
Expand Down
2 changes: 1 addition & 1 deletion cli/template/extras/src/env/with-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const env = createEnv({
* isn't built with invalid env vars.
*/
server: {
DATABASE_URL: z.string().url(),
DATABASE_URL: z.url(),
NODE_ENV: z
.enum(["development", "test", "production"])
.default("development"),
Expand Down
32 changes: 22 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"tailwind-scrollbar": "^3.0.0",
"treeify": "^1.1.0",
"unist-util-visit": "^5.0.0",
"zod": "^3.24.2"
"zod": "next"
},
"devDependencies": {
"@astrojs/react": "^4.2.1",
Expand Down
2 changes: 1 addition & 1 deletion www/src/pages/ar/usage/env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dir: rtl

```ts:env/schema.mjs
export const serverSchema = z.object({
// DATABASE_URL: z.string().url(),
// DATABASE_URL: z.url(),
});

export const serverEnv = {
Expand Down
2 changes: 1 addition & 1 deletion www/src/pages/es/usage/env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Este es el archivo que realmente modificarás. Contiene dos esquemas, uno para l

```ts:env/schema.mjs
export const serverSchema = z.object({
// DATABASE_URL: z.string().url(),
// DATABASE_URL: z.url(),
});

export const clientSchema = z.object({
Expand Down
2 changes: 1 addition & 1 deletion www/src/pages/no/usage/env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Endringene skjer i denne filen. Den inneholder to skjemaer, ett for servermiljø

```ts:env/schema.mjs
export const serverSchema = z.object({
// DATABASE_URL: z.string().url(),
// DATABASE_URL: z.url(),
});

export const serverEnv = {
Expand Down
Loading