-
-
Notifications
You must be signed in to change notification settings - Fork 460
@dphang all's good for me in production , but #909
Comments
Please add the Next.js version and more information about your project structure |
My pages are a mix of SSG / SSR. The app is basically fetching pages and posts from Storyblok. There is also a products section with a optional catch-all but that works fine since it uses getServerSideProps(). Pages
After deploy, in S3 bucket:_next/data has not been created
If I initially enter the URLs to the problematic pages directly in the address bar and hit Enter, two different errors occur: domain.com/ & domain.com/sv
domain.com/shop/* & domain.com/sv/shop/*503 ERROR
If I enter the URL to one of the working pages (i.e. products/, they're the only ones working initially), and navigate inline (using locale switcher with next/link) to /sv and then back to / (default locale) all the SSG dynamic routes pages are created in S3 bucket (the navlinks are present in index.js) and the site works perfectly from there. Some code excerpts
> serverless --debug
|
Looks like you are using locales? I had a fix yesterday in 1.19-alpha.33 to handle locales properly in newer Next 10 versions (e.g 10.0.7) since Next.js changed the structure of the prerender manifest (it now has routes for all locale paths, previously we had to generate it ourselves), maybe that will help? Before this fix, SSG pages weren't copied correctly if you had multiple locales. This could explain why SSG pages are not working but SSR pages are? Possibly related: #907 |
Working perfectly with 1.19-alpha.33. Thank you! The most awesome npm package I ever saw is now even more awesome! Thank you for you effort. |
Uh oh!
There was an error while loading. Please reload this page.
@dphang I'm currently using the latest alpha @sls-next/[email protected]. At build time, all SSG files are created as expected and ends up in .next/serverless directory locally but they're not copied to S3. Will you be addressing this issue? Is there a way in which I can issue a custom script during the build which cpoies the generated files to S3?
The text was updated successfully, but these errors were encountered: