-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
breaking: server to allow fallback to static #300
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 94a0e70:
|
@@ -4,6 +4,11 @@ export default defineConfig(({ mode }) => { | |||
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) }; | |||
if (mode === 'development') { | |||
return { | |||
optimizeDeps: { | |||
include: [ | |||
// '@uidotdev/usehooks', |
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.
I expected this would improve npm run website:dev
, but it makes it worse (errors) if we remove --with-ssr
.
It was the issue of #289. We should solve it, but let's move on this pr. |
This is something I wanted for some time.
Now, we can skip rendering RSC and/or HTML on the server.
In addition to it, with router, we can let the client to skip requesting for some/all route components.
It's working as expected, but now I fee the API and the core implementation is full of hacks. It's not easy to understand and thus not very maintainable for the future.
We should revisit it after getting some feedbacks.