-
-
Notifications
You must be signed in to change notification settings - Fork 1k
alpha: expose underlying nitro configuration in vite plugin #4192
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
base: alpha
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit 274819a.
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/arktype-adapter
@tanstack/directive-functions-plugin
@tanstack/history
@tanstack/eslint-plugin-router
@tanstack/react-router
@tanstack/react-router-devtools
@tanstack/react-router-with-query
@tanstack/react-start
@tanstack/react-start-client
@tanstack/react-start-plugin
@tanstack/react-start-server
@tanstack/router-cli
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-devtools-core
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/server-functions-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@tanstack/solid-start
@tanstack/solid-start-client
@tanstack/solid-start-plugin
@tanstack/solid-start-server
@tanstack/start-client-core
@tanstack/start-plugin-core
@tanstack/start-server-core
@tanstack/start-server-functions-client
@tanstack/start-server-functions-fetcher
@tanstack/start-server-functions-server
@tanstack/valibot-adapter
@tanstack/virtual-file-routes
@tanstack/zod-adapter
commit: |
we will not expose nitro options anymore |
Related to this? |
I think at least exposing the cloudflare + vercel preset options along with the rollup options would be helpful |
|
It would also be nice to have access to websockets via nitro - I don't think the server will accept websocket requests without experimental.websockets = true |
you can access 'cloudflare:*' import from your code, but you have to externalised the module like build: {
rollupOptions: {
external: [
'cloudflare:sockets',
],
},
}, in vite.config |
didn't change a thing unfortunately - tried externalising postgres too |
I was having some build issues across multiple platforms - I figured I'd have a better chance of resolving them if the nitro config was exposed.
Any edge cases I might be missing here? Wondering why this was omitted in the first place.