Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Integrated with sandbox #3

Merged
merged 48 commits into from
Mar 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f171abe
feat: removed webpack
MathurAditya724 Mar 21, 2024
935efea
chore: removed unused deps
MathurAditya724 Mar 21, 2024
ef9e103
refactor: added rollup with swc
MathurAditya724 Mar 23, 2024
f37a654
chore(sandbox): corrected assets path
MathurAditya724 Mar 23, 2024
18446d6
fix(sandbox): resolved build errors
MathurAditya724 Mar 23, 2024
99f44f0
chore(sandbox): removed assets
MathurAditya724 Mar 23, 2024
100bd38
fix(sandbox): added public dir
MathurAditya724 Mar 23, 2024
8988142
chore: minor changes
MathurAditya724 Mar 23, 2024
b661897
chore(sandbox): config changes
MathurAditya724 Mar 23, 2024
d0c77dc
chore(sandbox): minor changes
MathurAditya724 Mar 23, 2024
eb17d8e
chore(sandbox): minor correction
MathurAditya724 Mar 23, 2024
a66eb0e
chore(sandbox): added assets
MathurAditya724 Mar 23, 2024
f7bd1f4
chore(sandbox): config updates
MathurAditya724 Mar 23, 2024
8112a96
chore(sandbox): changed the runtime
MathurAditya724 Mar 23, 2024
00162d7
chore: resolved errors
MathurAditya724 Mar 23, 2024
1f5dd5f
chore(sandbox): minor changes
MathurAditya724 Mar 23, 2024
9aa3a34
chore(sandbox): resolved errors
MathurAditya724 Mar 23, 2024
40d2552
chore(sandbox): resolved errors
MathurAditya724 Mar 23, 2024
08d292c
chore(sandbox): experiment
MathurAditya724 Mar 23, 2024
5e35d4f
chore(sandbox): updated build command
MathurAditya724 Mar 23, 2024
96f6090
chore(sandbox): minor changes
MathurAditya724 Mar 23, 2024
f4803e0
chore(sandbox): minor changes
MathurAditya724 Mar 23, 2024
f566f09
chore(sandbox): minor changes
MathurAditya724 Mar 23, 2024
cb3b6ab
chore(sandbox): restructure
MathurAditya724 Mar 23, 2024
3351089
chore(sandbox): added rate limiter
MathurAditya724 Mar 23, 2024
b61fd39
chore(sandbox): minor changes
MathurAditya724 Mar 23, 2024
50e3b79
chore: resolving cjs issues
MathurAditya724 Mar 23, 2024
735fc9e
chore(core): release version 0.2.1-rc.0
MathurAditya724 Mar 23, 2024
dd5a439
chore(sandbox): updated depens
MathurAditya724 Mar 23, 2024
560cdac
fix(core): minor config update
MathurAditya724 Mar 23, 2024
186812b
chore(core): release version 0.2.1
MathurAditya724 Mar 23, 2024
45e1ce1
fix(sandbox): updated rate limiter example
MathurAditya724 Mar 23, 2024
69724a6
chore: minor updates
MathurAditya724 Mar 24, 2024
4439dfe
feat(redis): init commit
MathurAditya724 Mar 24, 2024
c56451d
chore(redis): minor changes
MathurAditya724 Mar 24, 2024
a7ae622
chore(redis): release version 0.1.0
MathurAditya724 Mar 24, 2024
e01f4f8
chore(redis): minor changes
MathurAditya724 Mar 24, 2024
3c498dd
chore(redis): minor config update
MathurAditya724 Mar 24, 2024
8dd70d2
chore(sandbox): added vercel kv in dependency
MathurAditya724 Mar 24, 2024
41c2013
chore(sandbox): minor experiment
MathurAditya724 Mar 24, 2024
3749bc6
minor changes
MathurAditya724 Mar 24, 2024
4b2e978
feat(sandbox): added keyGenerator
MathurAditya724 Mar 24, 2024
bfdab4a
chore: formatted code ✨
MathurAditya724 Mar 24, 2024
ef398c4
chore(sandbox): minor changes
MathurAditya724 Mar 24, 2024
1e33271
chore(sandbox): corrected header
MathurAditya724 Mar 24, 2024
b13a6a2
chore: updated package.json info
MathurAditya724 Mar 24, 2024
c24d412
chore(core): release version 0.2.2
MathurAditya724 Mar 24, 2024
165e1c9
chore(redis): release version 0.1.1
MathurAditya724 Mar 24, 2024
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
Prev Previous commit
Next Next commit
chore: resolved errors
MathurAditya724 committed Mar 23, 2024
commit 00162d782a7087c5a58856739c2f16cbe780050d
1 change: 1 addition & 0 deletions apps/sandbox/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NODEJS_HELPERS=0
4 changes: 0 additions & 4 deletions apps/sandbox/api/index.ts

This file was deleted.

16 changes: 16 additions & 0 deletions apps/sandbox/api/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { handle } from "@hono/node-server/vercel";
import { Hono } from "hono";
import { logger } from "hono/logger";
import Page from "./Page";

const app = new Hono();

app.use(logger());

app.get("/", (c) => {
return c.html(
<Page info={{ limit: 5, used: 1, remaining: 4, resetTime: new Date() }} />,
);
});

export default handle(app);
8 changes: 2 additions & 6 deletions apps/sandbox/api/main.tsx → apps/sandbox/api/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Hono } from "hono";
// import { type RateLimitInfo, rateLimiter } from "hono-rate-limiter";
import { logger } from "hono/logger";
import Page from "./Page";
// import Page from "./Page";

// Init the app
export const app = new Hono();
@@ -20,8 +20,4 @@ app.use(
);

// Routes
app.get("/", (c) =>
c.html(
<Page info={{ limit: 5, used: 1, remaining: 4, resetTime: new Date() }} />,
),
);
app.all("*", (c) => c.text("hello"));