Skip to content

Commit 74fa283

Browse files
authored
Update templates to fix auth in the playground (#57)
1 parent 6781072 commit 74fa283

File tree

12 files changed

+12
-6
lines changed

12 files changed

+12
-6
lines changed

templates/base-openapi/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"db:studio": "drizzle-kit studio"
1111
},
1212
"dependencies": {
13-
"@fiberplane/hono": "^0.4.1",
13+
"@fiberplane/hono": "0.4.4-beta.2",
1414
"@hono/zod-openapi": "^0.18.4",
1515
"@neondatabase/serverless": "^0.10.4",
1616
"dotenv": "^16.4.7",

templates/base-openapi/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ app.openapi(root, async (c) => {
162162
},
163163
})
164164
.use("/fp/*", createFiberplane({
165+
app,
165166
openapi: { url: "/openapi.json" },
166167
}));
167168

templates/base-supa-openapi/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"db:studio": "drizzle-kit studio"
1111
},
1212
"dependencies": {
13-
"@fiberplane/hono": "^0.4.1",
13+
"@fiberplane/hono": "0.4.4-beta.2",
1414
"@hono/zod-openapi": "^0.18.4",
1515
"dotenv": "^16.4.5",
1616
"drizzle-orm": "^0.39.3",

templates/base-supa-openapi/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ app.openapi(root, (c) => {
162162
},
163163
})
164164
.use("/fp/*", createFiberplane({
165+
app,
165166
openapi: { url: "/openapi.json" },
166167
}));
167168

templates/base-supa/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"db:studio": "drizzle-kit studio"
1111
},
1212
"dependencies": {
13-
"@fiberplane/hono": "0.4.2",
13+
"@fiberplane/hono": "0.4.4-beta.2",
1414
"dotenv": "^16.4.5",
1515
"drizzle-orm": "^0.39.3",
1616
"hono": "^4.7.0",

templates/base-supa/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ app.get("/openapi.json", c => {
4545
* Visit the explorer at `/fp`
4646
*/
4747
app.use("/fp/*", createFiberplane({
48+
app,
4849
openapi: { url: "/openapi.json" }
4950
}));
5051

templates/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"db:studio": "drizzle-kit studio"
1111
},
1212
"dependencies": {
13-
"@fiberplane/hono": "0.4.2",
13+
"@fiberplane/hono": "0.4.4-beta.2",
1414
"@neondatabase/serverless": "^0.10.4",
1515
"dotenv": "^16.4.7",
1616
"drizzle-orm": "^0.39.3",

templates/base/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ app.get("/openapi.json", c => {
4545
* Visit the explorer at `/fp`
4646
*/
4747
app.use("/fp/*", createFiberplane({
48+
app,
4849
openapi: { url: "/openapi.json" }
4950
}));
5051

templates/d1-openapi/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"db:studio": "drizzle-kit studio"
1414
},
1515
"dependencies": {
16-
"@fiberplane/hono": "^0.4.1",
16+
"@fiberplane/hono": "0.4.4-beta.2",
1717
"@hono/zod-openapi": "^0.18.4",
1818
"dotenv": "^16.4.5",
1919
"drizzle-orm": "^0.39.3",

templates/d1-openapi/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ app.openapi(root, (c) => {
161161
},
162162
})
163163
.use("/fp/*", createFiberplane({
164+
app,
164165
openapi: { url: "/openapi.json" },
165166
}));
166167

templates/d1/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"db:studio": "drizzle-kit studio"
1414
},
1515
"dependencies": {
16-
"@fiberplane/hono": "0.4.2",
16+
"@fiberplane/hono": "0.4.4-beta.2",
1717
"dotenv": "^16.4.5",
1818
"drizzle-orm": "^0.39.3",
1919
"hono": "^4.7.0",

templates/d1/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ app.get("/openapi.json", c => {
5353
* Visit the explorer at `/fp`
5454
*/
5555
app.use("/fp/*", createFiberplane({
56+
app,
5657
openapi: { url: "/openapi.json" }
5758
}));
5859

0 commit comments

Comments
 (0)