-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nojira | Update nextjs to v13.4.20-canary.12; enable static export; remove use of next image #112
Conversation
✅ Deploy Preview for giving-campaign ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
* dev: Add resolve relations to bridgeOptions for StoryblokStory (#113)
@@ -14,7 +14,7 @@ type ParamsType = { | |||
slug: string[]; | |||
}; | |||
|
|||
async function generateStaticParams() { | |||
export async function generateStaticParams() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To use static export, I need to add export
back here. Previously it generates a type error, but it seems ok now.
const nextConfig = { | ||
trailingSlash: true, | ||
output: 'export', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To enable static export
publish = "out" | ||
|
||
[build.environment] | ||
# For apps that use next export to generate static HTML | ||
# set the NETLIFY_NEXT_PLUGIN_SKIP to true. | ||
NETLIFY_NEXT_PLUGIN_SKIP="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to be set to use static export
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What? Really? Link to Doxn?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you go @sherakama
https://nextjs.org/docs/app/building-your-application/deploying/static-exports
It would also show me an error on the Netlify build page to do these two things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I'm not 100% sure I want to go with this - but at least I finally get it to work once 😂 All the combination of things that blocked this from working before.....
@sherakama Another thing of interest - comparing deploy time before and after switching to static export + the nextjs update 🤔 ~1.5 min (before) vs ~30s (after) |
* dev: GIVCAMP-199 | New homepage hero (#122) # Conflicts: # components/Homepage/HomepageSplitHero.tsx
…blokData in some SB components
…ra_update-package * feature/GIVCAMP-201_blurry-bg-poster: eslint update and lint fix Image on left option linter and clean up more styles BlurryPoster and new MVP Homepage components; better typing for StoryblokData in some SB components Create Blurry Poster component GIVCAMP-199 | New homepage hero (#122) More finetuning responsive Clean up Play with hero animation make font size fluid; positioning of hero elements sr only H1 New homepage hero GIVCAMP-198 | homepage Ideal fellow section with parallax explore (#121) GIVCAMP-197 | Changemaker card and section (#120) GIVCAMP-194 | Low budget data viz poc (#119) GIVCAMP-188 | Horizontal brochure poc; new CTA style (#118) Modularize import for heroicons (#117) # Conflicts: # components/Storyblok/SbHomepage.tsx # package-lock.json # package.json
…ra_update-package * feature/GIVCAMP-201_blurry-bg-poster: Revert old homepage; uninstall netlify nextjs plugin # Conflicts: # components/Storyblok/SbHomepage.tsx # package-lock.json # package.json
@sherakama I merged the latest changes (some not yet in Also, I uninstalled the netlify nextjs plugin as you suggested. The build log shows that it now automatically install the latest version - thanks! |
I think I can close this one for now |
@sherakama I previously had this PR which enables static export, and upgraded to 13.4.20-canary.12 which seems to be fine. No Safari button issue and 404 page seems ok too. Tagging you to see if there's anything we can use here. |
READY FOR REVIEW
Summary
Review By (Date)
Review Tasks
Setup tasks and/or behavior to test
https://deploy-preview-112--giving-campaign.netlify.app/
initiatives
after the above URL and hit enter, and check that you're taking to the initiative page instead of an error page