-
Notifications
You must be signed in to change notification settings - Fork 77
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
Bankai v9 beta feedback #246
Comments
Not feedback so much as an idea... I've been thinking about the convo we (@YerkoPalma @yoshuawuyts) were having about how to server-side render dynamic routes. Seems like you could avoid complexity in Bankai if you just wrote your app slightly differently: app.route('/posts/:id', require('./views/post')) to for (let post of posts) {
app.route(`/posts/${post.id}`, require('./views/post'))
} Then I guess the only difficulty would be figuring out how to get the route params into the view without manually reading them from |
Ran into issue #249 as well (which you may already have on your radar per this comment: #241 (comment)) |
Really, going ham on testing this new pipeline :) Opened stackcss/inline-critical-css#1 which seems like a common use case |
#250 is the biggest issue for me right now... |
Biggest thing for me right now (which I know is on the radar) is some way of nicely playing with browserify transforms static assets (aka brfs, enoki, etc…) These currently work but really slow down the pipeline! |
@s3ththompson perhaps |
@s3ththompson The problem with this is the situation where new posts are added. You'd have to add a new route every time a new object is created. I'm not sure it's the best idea to push this complexity onto the user. |
@cjhowe7 in this case, I'm thinking of server-side rendering is an optimization the developer adds with some knowledge ahead-of-time of which routes will be most popular (or a feature to help develop completely static websites). You could always fall back to a dynamic route: for (let post of popularPosts) {
app.route(`/posts/${post.id}`, require('./views/post'))
}
app.route(`/posts/:id`, require('.views/post')) |
While passing |
I figured out my issue with bankai. I was passing the directory that contained |
@yoshuawuyts is there a chance to add support for custom host, different from |
@YerkoPalma is there a way to detect the special env you're running in that doesn't have |
@yoshuawuyts the obvious other host other than |
@yoshuawuyts it is a remote Google App Engine that do has localhost, but that host isn't public availaible, so to access that container instance I have to use |
It's not beta anymore, but I'll write here anyway because I'm not sure if issue is even |
Feedback on the v9 beta thread. Post below if things don't line up alright for you. Thanks!
The text was updated successfully, but these errors were encountered: