-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
refactor(deploy): vercel serve and constants #877
Changes from 3 commits
1fda176
c75ae5b
ebee7bf
7a57da8
a49ef00
acb7a6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,10 @@ | |
"types": "./dist/internals.d.ts", | ||
"default": "./dist/internals.js" | ||
}, | ||
"./hono": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious here, but why do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did it at first (locally without commits), but it feels like mixed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, I noticed we need to re-export There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I misunderstood your question probably.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, this makes more sense! Thanks for the explanation |
||
"types": "./dist/hono.d.ts", | ||
"default": "./dist/hono.js" | ||
}, | ||
"./client": { | ||
"types": "./dist/client.d.ts", | ||
"default": "./dist/client.js" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// These exports are for internal use only and subject to change without notice. | ||
|
||
export { runner } from './lib/hono/runner.js'; | ||
|
||
export { Hono } from 'hono'; | ||
export { getRequestListener } from '@hono/node-server'; | ||
export { serveStatic } from '@hono/node-server/serve-static'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
export { runner as unstable_runner } from './lib/hono/runner.js'; | ||
export { build as unstable_build } from './lib/builder/build.js'; | ||
// These exports are for internal use only and subject to change without notice. | ||
|
||
export { build } from './lib/builder/build.js'; | ||
|
||
export { deployAwsLambdaPlugin } from './lib/plugins/vite-plugin-deploy-aws-lambda.js'; | ||
export { deployCloudflarePlugin } from './lib/plugins/vite-plugin-deploy-cloudflare.js'; | ||
export { deployDenoPlugin } from './lib/plugins/vite-plugin-deploy-deno.js'; | ||
export { deployNetlifyPlugin } from './lib/plugins/vite-plugin-deploy-netlify.js'; | ||
export { deployPartykitPlugin } from './lib/plugins/vite-plugin-deploy-partykit.js'; | ||
export { deployVercelPlugin } from './lib/plugins/vite-plugin-deploy-vercel.js'; | ||
export { devCommonJsPlugin } from './lib/plugins/vite-plugin-dev-commonjs.js'; | ||
export { nonjsResolvePlugin } from './lib/plugins/vite-plugin-nonjs-resolve.js'; | ||
export { rscAnalyzePlugin } from './lib/plugins/vite-plugin-rsc-analyze.js'; | ||
export { rscDelegatePlugin } from './lib/plugins/vite-plugin-rsc-delegate.js'; | ||
export { rscEntriesPlugin } from './lib/plugins/vite-plugin-rsc-entries.js'; | ||
export { rscEnvPlugin } from './lib/plugins/vite-plugin-rsc-env.js'; | ||
export { rscHmrPlugin } from './lib/plugins/vite-plugin-rsc-hmr.js'; | ||
export { rscIndexPlugin } from './lib/plugins/vite-plugin-rsc-index.js'; | ||
export { rscManagedPlugin } from './lib/plugins/vite-plugin-rsc-managed.js'; | ||
export { rscPrivatePlugin } from './lib/plugins/vite-plugin-rsc-private.js'; | ||
export { rscRsdwPlugin } from './lib/plugins/vite-plugin-rsc-rsdw.js'; | ||
export { rscTransformPlugin } from './lib/plugins/vite-plugin-rsc-transform.js'; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const EXTENSIONS = ['.js', '.ts', '.tsx', '.jsx', '.mjs', '.cjs']; | ||
export const SRC_MAIN = 'main'; | ||
export const SRC_ENTRIES = 'entries'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to test the hono server serving the website from vercel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! thanks 👍