Replies: 1 comment
-
I use it in the same way so I hope this is a good practice :-) To solve the "warning" issue when running locally, I set this in output: process.env.NODE_ENV !== "development" ? "export" : "standalone", |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hi guys,
I have an "output: export" SSG project with the app router.
Since it's a static site, I fetch the data from the client side. The API and the site would be on the same domain when it comes to production. Therefore, I need an HTTP proxy to get the API for local development and I think the simple way to have a proxy with next.js is through the "rewrites" feature.
Then I get this warning message.
However, the proxy is still working properly on the local. That confuses me is this the proper way to use an HTTP proxy locally with "output: export"? If it's OK, can I turn off the message? Or if it's NOT OK, what would be the proper way to use the proxy with "output: export"?
Thanks.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions