-
Notifications
You must be signed in to change notification settings - Fork 27k
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
getStaticProps and custom servers #10071
Comments
Thanks for bringing this to our attention!
I'm not sure if we're going to change this. In this example, you can completely eliminate your custom server and rename your page from |
Actually, in this exact example the page is even being rendered on-demand and not static as it should be. I'm going to close this as a non-goal of the API design. |
Thank you for your explanation. I would like to quickly reply:
Yeah I am aware of it, I wanted to make sure it does support it in the dev mode. If this method is not supported the second one for getting static paths will not be as well. Thanks |
@Timer So there is no change to get this working with, for example, Firebase cloud functions? |
@timneutkens I've misread the title, we're trying to use |
@Timer, @timneutkens I'm just wondering whether there is any plan to support getStaticProps with a custom server yet? Just to give some context as to why I ask. We're currently building an ecommerce front end and know our clients would not want '/category/[...slug]' or '/product/[...slug]' as they require full control over their URLs. Ideally we'd like to be able to offer static/pre rendered pages especially with the new 'Incremental Static Regeneration' in the pipeline but are currently unable to do so. If getStaticProps with custom servers is not in the pipeline can you think of any suggestions that might solve the issue? |
👋 @Timer @timneutkens Has there been any further consideration around this? I have a use case where allowing the mutation of the For example, I have a project that mimicks the routing of the WordPress Template Hierarchy, instead of the default Next.js routing. Currently You can check out the reproduction and what I'm referring to here: |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Hey,
have you anyone tried this solution with custom server and get it working?
Example:
Originally posted by @homoky in #9524 (comment)
The text was updated successfully, but these errors were encountered: