Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes bugs introduced or carried forward by #67 and #63 (on line 12 of the NavigationBar component, specifically).
Image file URLs that were working on my local environment were broken on the staging site, and vice-versa. I tried various relative paths to get around the problem, which didn't work because the staging site is served from a sub-directory of the domain, projects.suffolklitlab.org/courtformsonline.org, while the local environment was served from localhost:3000 with no subdirectory. So the relative paths were different on local v. staging environments and it was always broken on one or the other.
The Next.js basePath documentation led me to the solution. I added the basePath property to next.config.js so that the local and staging environments matched, imported the NextConfig object into files containing <Image> components, and inserted the basePath variable into the src property of the existing <Image> components.
When we change the domain to courtformsonline.org, we will need to update or remove the basePath property in next.config.js (either will work). The basePath import and the basePath segment in <Image> component src properties can be removed, as well (but will work fine if they are left in place).
I will update the launch checklist (#50) with those steps.