If you need dynamic behaviour, such as fetching and rendering user data on the server side, simply define an entry file in the build configuration. See more information here on the topic.
Once you define an entry file, all your server files will be hosted on lambda functions. The public assets will continue to be served from the CDN. Stormkit is smart enough to distribute the files accordingly.