We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to support [unjs/h3](https://github.com/unjs/h3)? I tried the following code with the custom setup:
[unjs/h3](https://github.com/unjs/h3)
// ./app.ts import { createServer } from 'node:http' import { createApp, eventHandler, toNodeListener } from 'h3' const app = createApp() app.use( '/', eventHandler(() => 'Hello world!') ) const listener = createServer(toNodeListener(app)) if (import.meta.env.PROD) { listener.listen(process.env.PORT || 3000) console.log(`🚀 Server ready at *:3000`) } export const viteNodeApp = listener
Error:
file:///...e/vite.config.ts.timestamp-1678018252429.mjs:16 app(res, res); ^ TypeError: app is not a function
Any ideas?
The text was updated successfully, but these errors were encountered:
not very familiar with h3, but try expose the app instead the listener. export const viteNodeApp = app
app
export const viteNodeApp = app
Sorry, something went wrong.
No branches or pull requests
Is it possible to support
[unjs/h3](https://github.com/unjs/h3)
? I tried the following code with the custom setup:Error:
Any ideas?
The text was updated successfully, but these errors were encountered: