Skip to content
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

Merged
merged 17 commits into from
Dec 23, 2023
Merged

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Dec 22, 2023

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.

Copy link

vercel bot commented Dec 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Dec 22, 2023 3:38pm

Copy link

codesandbox-ci bot commented Dec 22, 2023

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:

Sandbox Source
Vanilla Typescript Configuration
React Configuration
React TypeScript Configuration

@@ -4,6 +4,11 @@ export default defineConfig(({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
if (mode === 'development') {
return {
optimizeDeps: {
include: [
// '@uidotdev/usehooks',
Copy link
Owner Author

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.

@dai-shi
Copy link
Owner Author

dai-shi commented Dec 23, 2023

It was the issue of #289. We should solve it, but let's move on this pr.

@dai-shi dai-shi merged commit 8a1dd18 into main Dec 23, 2023
9 checks passed
@dai-shi dai-shi deleted the feat/partial-server branch December 23, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant