#A server function that is not available in production

4 messages · Page 1 of 1 (latest)

leaden aurora
#

I'm adding a server function that will only be used in development, I was wondering if there's a way to mark it as such and remove it from the final bundle.

I'm currently calling it from a custom plugin in tanstack devtools. I've tried to put a condition like import.meta.DEV && customPlugin to force it to only be added in dev, but after buliding the app I can still seed the server function in the bundle.

echo adder
#

can you please provide a complete minimal example of what you are trying to do here? then we can have a look how that could be realized

leaden aurora
#

Will do

leaden aurora