Difficulties when upgrading to the V1 design #1541
-
DescriptionWe attempted upgrading to the V1 design partially to be able to use new features and also the docs mostly show the examples in the new design. We encountered several problems to upgrade, some could be worked around after trying out some things, other not so easily indicating some subtle differences between v0 and v1. In order to provide some feedback and help others encountering the same issues. I will collect them here. 1. Errors with wrong Node EnvWhy does this happen? In our setup we are setting the Fix: @brillout kindly changed that to be warnings in 0.4.164 2.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
I agree it isn't ideal. The less implicit heuristics the better, but there are reasons why this heuristic is in place. That said, I think there are opportunities to make things simpler.
I agree that'd be nice. It just isn't the highest priority right now. (There are already a lot of high priorties and a lot of tickets, of which many are complex). The general expectation here is that folks who want to achieve advanced use cases (that cannot be implemented using other frontend frameworks) need to 1. invest time into digging and 2. sponsor the Vike project. While I definitely appreciate the bronze sponsorship of Burda (thank you! 💚), it's difficult to justify prioritizing use cases that are far from trivial and that are beneficial to only few users. I was actually thinking of Burda when I implemented that logic, as I was under the impression that everything is generated.
Hm, I'm not sure yet what a solution could be (there are may subtle trade-offs). (FYI using |
Beta Was this translation helpful? Give feedback.
-
Hi @brillout , so the main hurdles for upgrading to the V1 design remain to be these points 2. and 3. from the initial post 2. Being able to use client-side JS for parts of the page but not the wholeI think we may be able to work around the issue with the workaround as described above.
If I understood it correctly I believe 3. A clean solution for the crawling issueI haven’t really found a solution to the crawling issue so far. I guess one sort of hackish way would be to keep the source files of the static pages elsewhere and copy them into the folder at build time. Would probably work but feels like a weird workaround. It would be nicer to a have clean solution or a configurable way to specify where page files would be. |
Beta Was this translation helpful? Give feedback.
-
Hi @brillout , Point 2
The workaround will be ok for us and not too much trouble. Something we can implement in a way that won't affect BurdaForward userland. So that'll work for now without hassle.
Yes, long to medium term that would be nice Point 3
That would indeed be great to have since otherwise it would force us to work around it by copying around files. I will comment on the feature request. |
Beta Was this translation helpful? Give feedback.
-
Hi @brillout , I couldn't get much coding done last week due to an internal conference, but this week I tried the V1 upgrade once again. It worked very smoothly, both the Thanks for implementing the new settings so quickly in the past week. |
Beta Was this translation helpful? Give feedback.
c1dcd5f implements a new setting
clientHooks
. This should address the shortcomings you described at point 2.Both settings
clientHooks
andcrawl.git
are pre-released in0.4.172-commit-c1dcd5f
.