-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/andrew_testing' into fix-workflows
- Loading branch information
Showing
396 changed files
with
17,153 additions
and
8,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodejs 20.5.1 |
324 changes: 162 additions & 162 deletions
324
.yarn/releases/yarn-4.1.0.cjs → .yarn/releases/yarn-4.1.1.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,50 @@ | ||
import { Elysia } from 'elysia'; | ||
import { Hono } from 'hono' | ||
import { Hono } from 'hono'; | ||
// import { app as api } from 'server/src' | ||
import { serve } from '@hono/node-server' | ||
import { logger } from 'hono/logger' | ||
import { prettyJSON } from 'hono/pretty-json' | ||
import { cors } from 'hono/cors' | ||
import { renderTrpcPanel } from 'trpc-panel' | ||
import { serve } from '@hono/node-server'; | ||
import { logger } from 'hono/logger'; | ||
import { prettyJSON } from 'hono/pretty-json'; | ||
import { cors } from 'hono/cors'; | ||
import { renderTrpcPanel } from 'trpc-panel'; | ||
// import { appRouter } from 'server/src/routes/trpcRouter'; | ||
// import { html } from '@elysiajs/html'; | ||
|
||
const elysia = new Elysia() | ||
// .use(html()) | ||
.get('/', () => '/Hello from Elysia!') | ||
// .get('panel', () => renderTrpcPanel(appRouter, { url: 'http://localhost:3000/api/trpc' })) | ||
.listen(8086) | ||
// .use(html()) | ||
.get('/', () => '/Hello from Elysia!') | ||
// .get('panel', () => renderTrpcPanel(appRouter, { url: 'http://localhost:3000/api/trpc' })) | ||
.listen(8086); | ||
|
||
const workers = new Hono() | ||
.get('*', (c) => c.text('Hello from worker Hono!')) | ||
const workers = new Hono().get('*', (c) => c.text('Hello from worker Hono!')); | ||
|
||
const main = new Hono() | ||
.use('*', prettyJSON()) // With options: prettyJSON({ space: 4 }) | ||
.use(logger()) | ||
.use('*', cors()) | ||
// .use('/panel', async (ctx, next) => { | ||
// return ctx.render( | ||
// renderTrpcPanel(appRouter, { url: 'http://localhost:3000/api/trpc' }), | ||
// ); | ||
// }) | ||
.get('/', (c) => c.text('/Hello from Hono in root!')) | ||
// .mount('/:wild', api.handle) | ||
.mount('/workers', workers.fetch) | ||
.mount('/elysia', elysia.fetch) | ||
.get('*', (c) => c.text('Fallback from Hono in Main!')) | ||
.onError((err, c) => { | ||
console.error(`${err}`); | ||
return c.text('Custom Error Message', 500); | ||
}); | ||
.use('*', prettyJSON()) // With options: prettyJSON({ space: 4 }) | ||
.use(logger()) | ||
.use('*', cors()) | ||
// .use('/panel', async (ctx, next) => { | ||
// return ctx.render( | ||
// renderTrpcPanel(appRouter, { url: 'http://localhost:3000/api/trpc' }), | ||
// ); | ||
// }) | ||
.get('/', (c) => c.text('/Hello from Hono in root!')) | ||
// .mount('/:wild', api.handle) | ||
.mount('/workers', workers.fetch) | ||
.mount('/elysia', elysia.fetch) | ||
.get('*', (c) => c.text('Fallback from Hono in Main!')) | ||
.onError((err, c) => { | ||
console.error(`${err}`); | ||
return c.text('Custom Error Message', 500); | ||
}); | ||
|
||
serve({ | ||
serve( | ||
{ | ||
fetch: main.fetch, | ||
port: 8085, | ||
...main | ||
}, (info) => { | ||
console.log('Server started on port ->', info.port) | ||
} | ||
) | ||
...main, | ||
}, | ||
(info) => { | ||
console.log('Server started on port ->', info.port); | ||
}, | ||
); | ||
|
||
export default main | ||
export default main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.