diff --git a/apps/sandbox/api/Page.tsx b/apps/sandbox/api/Page.tsx index 907e6d9..94998c6 100644 --- a/apps/sandbox/api/Page.tsx +++ b/apps/sandbox/api/Page.tsx @@ -1,8 +1,8 @@ // import type { RateLimitInfo } from "hono-rate-limiter"; import { css } from "hono/css"; import type { FC } from "hono/jsx"; -import Card from "./Card"; -import Layout from "./Layout"; +import Card from "./Card.js"; +import Layout from "./Layout.js"; const checkOut = css` font-family: monospace; diff --git a/apps/sandbox/api/index.tsx b/apps/sandbox/api/index.tsx index 8ea3462..da46a87 100644 --- a/apps/sandbox/api/index.tsx +++ b/apps/sandbox/api/index.tsx @@ -1,7 +1,7 @@ import { handle } from "@hono/node-server/vercel"; import { Hono } from "hono"; import { logger } from "hono/logger"; -import Page from "./Page"; +import Page from "./Page.js"; const app = new Hono(); diff --git a/apps/sandbox/api/main.ts b/apps/sandbox/api/main.ts index a5e59cf..66f7d50 100644 --- a/apps/sandbox/api/main.ts +++ b/apps/sandbox/api/main.ts @@ -1,23 +1,27 @@ -import { Hono } from "hono"; -// import { type RateLimitInfo, rateLimiter } from "hono-rate-limiter"; -import { logger } from "hono/logger"; -// import Page from "./Page"; +// import { Hono } from "hono"; +// // import { type RateLimitInfo, rateLimiter } from "hono-rate-limiter"; +// import { logger } from "hono/logger"; +// // import Page from "./Page"; -// Init the app -export const app = new Hono(); +// // Init the app +// export const app = new Hono(); -// Adding the rate limitter -app.use( - logger(), - // rateLimiter({ - // windowMs: 10_000, - // limit: 10, - // // store: new RedisStore({ - // // sendCommand: (...args: string[]) => kv.eval(...args), - // // }), - // handler: (_, next) => next(), - // }), -); +// // Adding the rate limitter +// app.use( +// logger() +// // rateLimiter({ +// // windowMs: 10_000, +// // limit: 10, +// // // store: new RedisStore({ +// // // sendCommand: (...args: string[]) => kv.eval(...args), +// // // }), +// // handler: (_, next) => next(), +// // }), +// ); -// Routes -app.all("*", (c) => c.text("hello")); +// // Routes +// app.get("/", (c) => +// c.html( +// +// ) +// ); diff --git a/apps/sandbox/project.json b/apps/sandbox/project.json index eebe4ee..d77a277 100644 --- a/apps/sandbox/project.json +++ b/apps/sandbox/project.json @@ -7,11 +7,7 @@ "build": { "executor": "nx:run-commands", "options": { - "commands": [ - "nx run sandbox:rollup", - "mv dist/apps/sandbox/index.esm.js dist/apps/sandbox/api/index.js", - "mv dist/apps/sandbox/index.esm.d.ts dist/apps/sandbox/api/index.d.ts" - ], + "commands": ["echo 🔥"], "parallel": false } },