philiposaurus
TTCTheo's Typesafe Cult
•Created by philiposaurus on 6/14/2023 in #questions
ISR (+ on demand revalidation) NextJS on Netlify not working
ISR on Netlify seems rough. Various threads and form pages going around. There seems to be partial support - as in - ISR using the
revalidation
property in getStaticProps
should "just" work according to this https://docs.netlify.com/integrations/frameworks/next-js/incremental-static-regeneration/ page.
Some further down the page it is mentioned that on-demand revalidation is indeed not supported somehow...
Annoying enough on-demand is not working. My pages are never revalidated when using the revalidation
either.
Tried the latest 13.4.5 as well as some older 13.2.0 nextjs version but no luck. No error messages or logs in any of the functions related to this either.
Has anyone got this to work? If so, what may I have missed?2 replies
TTCTheo's Typesafe Cult
•Created by philiposaurus on 5/27/2023 in #questions
SCSS file being compiled as JS and (obviously) erroring on Nextjs "Collecting page data" step
I am quite stuck.
Trying to get PayloadCMS running within NextJS by using the
@payloadcms/next-payload
package. All seems OK but when I run a build I get an error on the cjs loader not understanding SCSS syntax. In dev mode all is fine.
I am not sure if the issue is even related to the payload package. How can the cjs loader think a scss file is js?
Having a hard time understanding how this can be happening, and how to prevent it.
Probably hard to see why based off of this info but pls help me look into the right direction.
Thanks in advance!
Nextjs build output:
4 replies