) {
const allUsers = await ctx.db.select().from(users).all();
return (
diff --git a/starters/drizzle/src/worker.tsx b/starters/drizzle/src/worker.tsx
index 02f7af310..86ecc6ad3 100644
--- a/starters/drizzle/src/worker.tsx
+++ b/starters/drizzle/src/worker.tsx
@@ -9,7 +9,7 @@ export interface Env {
DB: D1Database;
}
-type Context = {
+export type Context = {
db: ReturnType;
};
diff --git a/starters/drizzle/tsconfig.json b/starters/drizzle/tsconfig.json
index daf64777b..ca4c44752 100644
--- a/starters/drizzle/tsconfig.json
+++ b/starters/drizzle/tsconfig.json
@@ -14,13 +14,9 @@
/* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "bundler",
/* Specify type package names to be included without being referenced in a source file. */
- "types": [
- "worker-configuration.d.ts",
- "./types/react.d.ts",
- "./types/global.d.ts",
- "./types/vite.d.ts"
- ],
+ "types": ["./worker-configuration.d.ts"],
"paths": {
+ "@/*": ["./src/*"],
"src/*": ["./src/app/*"]
},
/* Enable importing .json files */
diff --git a/starters/minimal/README.md b/starters/minimal/README.md
index 8a93679d6..bb659090a 100644
--- a/starters/minimal/README.md
+++ b/starters/minimal/README.md
@@ -16,7 +16,7 @@ pnpm install
pnpm dev
```
-Point your browser to the URL displayed in the terminal (e.g. `http://localhost:2332/`). You should see a "Hello World" message in your browser.
+Point your browser to the URL displayed in the terminal (e.g. `http://localhost:5173/`). You should see a "Hello World" message in your browser.
##
diff --git a/starters/minimal/package.json b/starters/minimal/package.json
index b90655fde..3bc80458d 100644
--- a/starters/minimal/package.json
+++ b/starters/minimal/package.json
@@ -13,15 +13,17 @@
"build": "vite build",
"dev": "NODE_ENV=${NODE_ENV:-development} vite dev",
"dev:init": "rw-scripts dev-init",
+ "preview": "pnpm build && pnpm vite preview",
"worker:run": "rw-scripts worker-run",
"clean": "pnpm build && pnpm clean:vendor",
"clean:vite": "rm -rf ./node_modules/.vite",
"clean:vendor": "rm -rf ./vendor/dist",
"release": "pnpm build && wrangler deploy",
- "format": "prettier --write ./src"
+ "format": "prettier --write ./src",
+ "check": "pnpm tsc"
},
"dependencies": {
- "@redwoodjs/sdk": "0.0.30",
+ "@redwoodjs/sdk": "0.0.30-test.2",
"react": "19.0.0-rc-f2df5694-20240916",
"react-dom": "19.0.0-rc-f2df5694-20240916",
"react-server-dom-webpack": "19.0.0-rc-f2df5694-20240916"
diff --git a/starters/minimal/tsconfig.json b/starters/minimal/tsconfig.json
index daf64777b..3a155cfec 100644
--- a/starters/minimal/tsconfig.json
+++ b/starters/minimal/tsconfig.json
@@ -14,12 +14,7 @@
/* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "bundler",
/* Specify type package names to be included without being referenced in a source file. */
- "types": [
- "worker-configuration.d.ts",
- "./types/react.d.ts",
- "./types/global.d.ts",
- "./types/vite.d.ts"
- ],
+ "types": ["./worker-configuration.d.ts"],
"paths": {
"src/*": ["./src/app/*"]
},
diff --git a/starters/passkey-auth/README.md b/starters/passkey-auth/README.md
index 929d62c9d..d723d8fc3 100644
--- a/starters/passkey-auth/README.md
+++ b/starters/passkey-auth/README.md
@@ -18,7 +18,7 @@ pnpm install
pnpm dev
```
-Point your browser to the URL displayed in the terminal (e.g. `http://localhost:2332/`).
+Point your browser to the URL displayed in the terminal (e.g. `http://localhost:5173/`).
## Deploying your app
diff --git a/starters/passkey-auth/package.json b/starters/passkey-auth/package.json
index aa359c77b..788322b32 100644
--- a/starters/passkey-auth/package.json
+++ b/starters/passkey-auth/package.json
@@ -13,6 +13,7 @@
"build": "vite build",
"dev": "NODE_ENV=${NODE_ENV:-development} vite dev",
"dev:init": "rw-scripts dev-init",
+ "preview": "pnpm build && pnpm vite preview",
"worker:run": "rw-scripts worker-run",
"clean": "pnpm build && pnpm clean:vendor",
"clean:vite": "rm -rf ./node_modules/.vite",
@@ -22,12 +23,13 @@
"migrate:dev": "npx prisma generate && wrangler d1 migrations apply DB --local",
"migrate:prd": "wrangler d1 migrations apply DB --remote",
"migrate:new": "rw-scripts migrate-new",
- "seed": "pnpm worker:run ./src/scripts/seed.ts"
+ "seed": "pnpm worker:run ./src/scripts/seed.ts",
+ "check": "pnpm tsc"
},
"dependencies": {
"@prisma/adapter-d1": "^6.4.1",
"@prisma/client": "^6.4.1",
- "@redwoodjs/sdk": "0.0.30",
+ "@redwoodjs/sdk": "0.0.30-test.2",
"@simplewebauthn/browser": "^13.1.0",
"@simplewebauthn/server": "^13.1.1",
"react": "19.0.0-rc-f2df5694-20240916",
diff --git a/starters/passkey-auth/tsconfig.json b/starters/passkey-auth/tsconfig.json
index 219cfa605..6355d52a6 100644
--- a/starters/passkey-auth/tsconfig.json
+++ b/starters/passkey-auth/tsconfig.json
@@ -14,12 +14,7 @@
/* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "bundler",
/* Specify type package names to be included without being referenced in a source file. */
- "types": [
- "worker-configuration.d.ts",
- "./types/react.d.ts",
- "./types/global.d.ts",
- "./types/vite.d.ts"
- ],
+ "types": ["./worker-configuration.d.ts"],
"paths": {
"@/*": ["./src/*"],
".prisma/*": ["./node_modules/.prisma/*"]
diff --git a/starters/prisma/README.md b/starters/prisma/README.md
index 62f666022..d1be79873 100644
--- a/starters/prisma/README.md
+++ b/starters/prisma/README.md
@@ -16,7 +16,7 @@ pnpm install
pnpm dev
```
-Point your browser to the URL displayed in the terminal (e.g. `http://localhost:2332/`). You should see a "Hello World" message in your browser.
+Point your browser to the URL displayed in the terminal (e.g. `http://localhost:5173/`). You should see a "Hello World" message in your browser.
## Deploying your app
diff --git a/starters/prisma/package.json b/starters/prisma/package.json
index c11c8b1f8..b02e5140c 100644
--- a/starters/prisma/package.json
+++ b/starters/prisma/package.json
@@ -13,6 +13,7 @@
"build": "vite build",
"dev": "NODE_ENV=${NODE_ENV:-development} vite dev",
"dev:init": "rw-scripts dev-init",
+ "preview": "pnpm build && pnpm vite preview",
"worker:run": "rw-scripts worker-run",
"clean": "pnpm build && pnpm clean:vendor",
"clean:vite": "rm -rf ./node_modules/.vite",
@@ -22,13 +23,13 @@
"migrate:dev": "npx prisma generate && wrangler d1 migrations apply DB --local",
"migrate:prd": "wrangler d1 migrations apply DB --remote",
"migrate:new": "rw-scripts migrate-new",
- "seed": "pnpm worker:run ./src/scripts/seed.ts"
+ "seed": "pnpm worker:run ./src/scripts/seed.ts",
+ "check": "pnpm tsc"
},
"dependencies": {
"@prisma/adapter-d1": "^6.3.1",
"@prisma/client": "^6.3.1",
- "@redwoodjs/sdk": "0.0.30",
- "prisma": "^6.3.1",
+ "@redwoodjs/sdk": "0.0.30-test.2",
"react": "19.0.0-rc-f2df5694-20240916",
"react-dom": "19.0.0-rc-f2df5694-20240916",
"react-server-dom-webpack": "19.0.0-rc-f2df5694-20240916"
@@ -37,6 +38,7 @@
"@types/node": "^22.13.11",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
+ "prisma": "^6.3.1",
"vite": "^6.1.1",
"wrangler": "^4.4.0"
},
diff --git a/starters/prisma/tsconfig.json b/starters/prisma/tsconfig.json
index 2091770dc..06dfecc38 100644
--- a/starters/prisma/tsconfig.json
+++ b/starters/prisma/tsconfig.json
@@ -14,15 +14,11 @@
/* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "bundler",
/* Specify type package names to be included without being referenced in a source file. */
- "types": [
- "worker-configuration.d.ts",
- "./types/react.d.ts",
- "./types/global.d.ts",
- "./types/vite.d.ts"
- ],
+ "types": ["./worker-configuration.d.ts"],
"paths": {
"src/*": ["./src/app/*"],
- "@/*": ["./src/*"]
+ "@/*": ["./src/*"],
+ ".prisma/*": ["./node_modules/.prisma/*"]
},
/* Enable importing .json files */
"resolveJsonModule": true,
diff --git a/starters/sessions/README.md b/starters/sessions/README.md
index e28224315..0d549653c 100644
--- a/starters/sessions/README.md
+++ b/starters/sessions/README.md
@@ -18,7 +18,7 @@ Within your project's `wrangler.jsonc` file, replace the placeholder values. For
pnpm dev
```
-Point your browser to the URL displayed in the terminal (e.g. `http://localhost:2332/`).
+Point your browser to the URL displayed in the terminal (e.g. `http://localhost:5173/`).
## Deploying your app
diff --git a/starters/sessions/package.json b/starters/sessions/package.json
index 87b9e20f0..9060510ec 100644
--- a/starters/sessions/package.json
+++ b/starters/sessions/package.json
@@ -12,16 +12,18 @@
"postinstall": "pnpm dev:init",
"build": "vite build",
"dev": "NODE_ENV=${NODE_ENV:-development} vite dev",
+ "preview": "pnpm build && pnpm vite preview",
"dev:init": "rw-scripts dev-init",
"worker:run": "rw-scripts worker-run",
"clean": "pnpm build && pnpm clean:vendor",
"clean:vite": "rm -rf ./node_modules/.vite",
"clean:vendor": "rm -rf ./vendor/dist",
"release": "pnpm build && wrangler deploy",
- "format": "prettier --write ./src"
+ "format": "prettier --write ./src",
+ "check": "pnpm tsc"
},
"dependencies": {
- "@redwoodjs/sdk": "0.0.30",
+ "@redwoodjs/sdk": "0.0.30-test.2",
"react": "19.0.0-rc-f2df5694-20240916",
"react-dom": "19.0.0-rc-f2df5694-20240916",
"react-server-dom-webpack": "19.0.0-rc-f2df5694-20240916"
diff --git a/starters/sessions/tsconfig.json b/starters/sessions/tsconfig.json
index c13e336e1..f72164ec1 100644
--- a/starters/sessions/tsconfig.json
+++ b/starters/sessions/tsconfig.json
@@ -14,12 +14,7 @@
/* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "bundler",
/* Specify type package names to be included without being referenced in a source file. */
- "types": [
- "worker-configuration.d.ts",
- "./types/react.d.ts",
- "./types/global.d.ts",
- "./types/vite.d.ts"
- ],
+ "types": ["./worker-configuration.d.ts"],
"paths": {
"@/*": ["./src/*"]
},
diff --git a/starters/standard/README.md b/starters/standard/README.md
index 0c5861080..58fbaae2d 100644
--- a/starters/standard/README.md
+++ b/starters/standard/README.md
@@ -16,7 +16,7 @@ pnpm install
pnpm dev
```
-Point your browser to the URL displayed in the terminal (e.g. `http://localhost:2332/`). You should see a "Hello World" message in your browser.
+Point your browser to the URL displayed in the terminal (e.g. `http://localhost:5173/`). You should see a "Hello World" message in your browser.
## Deploying your app
diff --git a/starters/standard/package.json b/starters/standard/package.json
index b813a7b1b..4e9c810e9 100644
--- a/starters/standard/package.json
+++ b/starters/standard/package.json
@@ -13,6 +13,7 @@
"build": "vite build",
"dev": "NODE_ENV=${NODE_ENV:-development} vite dev",
"dev:init": "rw-scripts dev-init",
+ "preview": "pnpm build && pnpm vite preview",
"worker:run": "rw-scripts worker-run",
"clean": "pnpm build && pnpm clean:vendor",
"clean:vite": "rm -rf ./node_modules/.vite",
@@ -22,12 +23,13 @@
"migrate:dev": "npx prisma generate && wrangler d1 migrations apply DB --local",
"migrate:prd": "wrangler d1 migrations apply DB --remote",
"migrate:new": "rw-scripts migrate-new",
- "seed": "pnpm worker:run ./src/scripts/seed.ts"
+ "seed": "pnpm worker:run ./src/scripts/seed.ts",
+ "check": "pnpm tsc"
},
"dependencies": {
"@prisma/adapter-d1": "^6.4.1",
"@prisma/client": "^6.4.1",
- "@redwoodjs/sdk": "0.0.30",
+ "@redwoodjs/sdk": "0.0.30-test.2",
"@simplewebauthn/browser": "^13.1.0",
"@simplewebauthn/server": "^13.1.1",
"react": "19.0.0-rc-f2df5694-20240916",
diff --git a/starters/standard/tsconfig.json b/starters/standard/tsconfig.json
index 219cfa605..6355d52a6 100644
--- a/starters/standard/tsconfig.json
+++ b/starters/standard/tsconfig.json
@@ -14,12 +14,7 @@
/* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "bundler",
/* Specify type package names to be included without being referenced in a source file. */
- "types": [
- "worker-configuration.d.ts",
- "./types/react.d.ts",
- "./types/global.d.ts",
- "./types/vite.d.ts"
- ],
+ "types": ["./worker-configuration.d.ts"],
"paths": {
"@/*": ["./src/*"],
".prisma/*": ["./node_modules/.prisma/*"]