-
Notifications
You must be signed in to change notification settings - Fork 35
Next.js migration #79
base: master
Are you sure you want to change the base?
Conversation
Wow this is really cool! But I guess for a change of this magnitude we should probably talk and coordinate a bit more…? I'm not quite sure where to start with this to be honest, but I'll try to take a look at what you have so far next week :) |
Btw:
Do you mean having one physical file per path? We actually started out like this and migrated to the current system when we realized that we were duplicating a lot of the code. With the current system all pages are made of blocks, and the blocks are listed in the sitemap. So we ended up not really needing "static" pages. Sorry if I misunderstood! P.S. also it's worth pointing out that we want to be able to reuse this repo for other, different surveys. So it's important to us to keep the structure as flexible as possible. |
@SachaG Yes, one physical page per path, there shouldn't be any kind of code duplication thanks to the chunks management of Next.js, but the main reason for this change is to make the content of each page way simpler than it's today, I also want to eventually get rid of the sitemap yaml files, which are also available in the client and are quite heavy, or at least replace it with a minimal version of what it currently is. Could this be used for a future survey: Definitely, the way you edit the content will be way simpler after this. |
While I really appreciate you taking the time to help us improve this project, I feel like this amounts to you deciding to completely change the code architecture without really consulting us…? Unless you are doing this project as a personal experiment for your own benefit? |
@SachaG Not at all, we can get into a call if you want to, I don't want to do something that feels wrong to you, I'm still far from migrating all pages so any architecture changes to this PR are very welcome. The only thing that I have decided is to remove as much code from the client bundle and configurations as possible, if that doesn't sound good I will definitely not do that. Tell me what is very important for the project moving forward and I'll make sure to keep it. |
As of my above comment, I'll stop working on the PR until you are 100% sold to it. |
Sorry for the lack of response, I've been pretty busy this past week. We should definitely jump on a call before you move forward just to compare notes. Could you email me at info at sachagreif dot com? |
@SachaG Nice, just sent an email 👍 |
Overall goals of this PR:
getStaticProps
Stuff to do: